[R] multi read.table function and read.table function not accepting col.names
Laura Quinn
laura at env.leeds.ac.uk
Wed May 26 13:51:58 CEST 2004
I am using R-1.8.0 on Debian.
I'm trying to read in a large table (1441*16) which currently has no
header line. I have set up a list of column names which is 16 names long.
when i try the following:
myfiledate.01<-read.table("filenamedate.01",row.names=NULL,col.names="names",na.strings="-999.00")
I am returned with an error saying there are more columsh than column
names. I am sure I have done this successfully in the past so can't
understand the problem. I have done the read.table function without
specifying col.names and it works fine and i end up with a 1441*16
data.frame.
Also as I have several hundred of these tables to read into R, all having
the same dimension and all having the same column names, is it possible to
automate R so they will all be read in at once - each table represents a
different days worth of data.
Thanks
Laura
More information about the R-help
mailing list