[R] Why a multi column, tab delimited file has only one column after reading in with read.table specification sep="\t"

Yong Wang wangyong1 at gmail.com
Sun May 20 23:48:00 CEST 2007


Dear all:
I have a tab delimited file as following

AGE WEIGHT    PROTEIN   ........
6	20	3	........
8	39	4	........

I tried to read it as following:

 data <- read.table(file,sep="\t",header=T);

but there is only column for the data after reading in,:

dim(data);
[1] 200 1

the column name is "AGE...WEIGHT...........PROTEIN...."


Any quick suggestion will be appreciated.

Best Regards



More information about the R-help mailing list