[R] column name of a table

From: <herodote_at_oreka.com>
Date: Sat 17 Dec 2005 - 02:31:19 EST


hy all,

I wish to switch in a part in my code that use "read.table" to "scan", actually i use this:

tab<-scan("data.dat",what=integer(),skip=1) dim(tab)<-c(75,length(tab)/75)
tab<-t(tab)

It gives me a new tab with 75 columns, but i when i was using read.table with headers then attach i could use the columns names to access the data values, now how can i attach the columns names that are on the first line of the file data.dat?

Any help would be great!

thks all
guillaume.



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Dec 17 02:44:39 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:39 EST