Unformatted text preview: Desktop or you can store it under My Documents, for example. BE SURE THAT WHEN IT IS STORED, IT IS STORED AS A TEXT FILE. [stored-data-name].txt Select “Save as” and select .txt as the file format. Now back on the R console, get the data into the active workspace with: > [new-data-file-name] < - read.table(“/Users/[your-user-name]/Desktop/ [stored-data-name].txt”, header=TRUE) > attach([new-data-file-name]) [ ] is a user supplied name – DO NOT include the brackets [ ] Number of column names must match the number of columns. You can find the proper “path” to where the data are stored by going to the file and selecting “Get Info”. The “path” is listed by “Where” in the info window. This is the path which is needed in read.table(“[path goes here]”, header=TRUE)....
View Full Document
- Fall '11
- Regression Analysis, Computer file formats, Computer file