I have a csv file that I am trying to read in R, for some reason R thinks the first row is the header for each column which is not true. Is there a way to get around this.
This is my command:
test <- as.matrix(read.csv(file="filetable.csv", sep=",", header=FALSE))
I get something like this
AATCAGGC X25070
[1,] "ACAAGGCT" " 50687"
[2,] "ACACGATC" " 47483"
[3,] "ACACTGAC" " 18339"
[4,] "ACAGGAGT" " 48550"
the first row should be part of the data
Opening filetable.csv in notepad I get this
AATCAGGC,25070
ACAAGGCT,50687
ACACGATC,47483
ACACTGAC,18339
ACAGGAGT,48550
Thanks
It’s header=FALSE not head: http://stat.ethz.ch/R-manual/R-patched/library/utils/html/read.table.html