Skip to content
Prev 258140 / 398502 Next

Odp: read.table: fill=T for header?

Hi

If I understand correctly you maybe could read a file without header, 
discard last column, read first line of a file and put it as column names.

read.delim(textConnection(infile), header=F, skip=1)
scan(textConnection(infile), nlines=1, sep="\t", what=c("",""))

Regards
Petr


r-help-bounces at r-project.org napsal dne 27.04.2011 14:15:33:
http://www.R-project.org/posting-guide.html