Re: [R] Header = T

2011-11-23 Thread Jim Lemon
On 11/23/2011 06:47 AM, lucky7 wrote: Hi, I just start to use R today! I am reading the R Help on read.csv and the description for header says header is set to TRUE if and only if the first row contains one fewer field than the number of columns. Why is that? My data has the same number of

Re: [R] Header = T

2011-11-23 Thread peter dalgaard
On Nov 23, 2011, at 10:03 , Jim Lemon wrote: On 11/23/2011 06:47 AM, lucky7 wrote: Hi, I just start to use R today! I am reading the R Help on read.csv and the description for header says header is set to TRUE if and only if the first row contains one fewer field than the number of

Re: [R] Header = T

2011-11-23 Thread Jim Lemon
On 11/23/2011 09:38 PM, peter dalgaard wrote: On Nov 23, 2011, at 10:03 , Jim Lemon wrote: On 11/23/2011 06:47 AM, lucky7 wrote: Hi, I just start to use R today! I am reading the R Help on read.csv and the description for header says header is set to TRUE if and only if the first row

[R] Header = T

2011-11-22 Thread lucky7
Hi, I just start to use R today! I am reading the R Help on read.csv and the description for header says header is set to TRUE if and only if the first row contains one fewer field than the number of columns. Why is that? My data has the same number of fields in the first row as the number of

Re: [R] Header = T

2011-11-22 Thread Richard M. Heiberger
a b A 1 2 B 3 4 C 5 6 The assumption above is that the rownames don't have a header and the columns do. Therefore the default is header=TRUE. r a b A 1 2 B 3 4 C 5 6 In the second example, the first column is called r and it is not clear whether that is a column with a variable