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.