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
I am not sure to understand what you want, but maybe
colnames() is what you want.
for example
mat
[,1] [,2] [,3]
[1,]135
[2,]246
colnames(mat)-c(col1,col2,col3)
mat
col1 col2 col3
[1,]135
[2,]246
was it what you were looking for ?