« 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',
header=FALSE,
sep=",",
nrows=1000)



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

TrackBack URL for this entry:
http://www.stylizedfacts.com/cgi-sys/cgiwrap/fotohof/managed-mt/mt-tb.cgi/9032

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.)