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

2007-05-20 Thread Yong Wang
Dear all: I have a tab delimited file as following AGE WEIGHTPROTEIN 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);

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

2007-05-20 Thread John Kane
Are you sure that there are tabs? try sep= ?read.table seems to say that this should work Otherwise try read.delimited. --- Yong Wang [EMAIL PROTECTED] wrote: Dear all: I have a tab delimited file as following AGE WEIGHTPROTEIN 6 20 3 8

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

2007-05-20 Thread Charles C. Berry
On Sun, 20 May 2007, Yong Wang wrote: Dear all: I have a tab delimited file as following Probably you do NOT have a tab delimited file after all. AGE WEIGHTPROTEIN 6 20 3 8 39 4 I tried to read it as following: data -

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

2007-05-20 Thread Peter Dalgaard
Yong Wang wrote: Dear all: I have a tab delimited file as following AGE WEIGHTPROTEIN 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