« activist journalism grows | Main | Donkey auction »

r in a day #3: More Convert CSV to data set by reading as text file, in r

Get variable names, read only some rows

mydata <- read.table ('c:\\users\\me\\data\\myfile.csv',

Q. Is the first row the vriable names and all following rows data ?

No, all rows are data: header=FALSE

Yes. header=TRUE

From Coruscation's r: r in a day.


TrackBack URL for this entry:

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)