Re: [R] Why do I have a column called row.names?

2012-06-04 Thread David L Carlson
Try help(read.delim) - always a good strategy before using a function for the first time: In it, you will find: Using row.names = NULL forces row numbering. Missing or NULL row.names generate row names that are considered to be 'automatic' (and not preserved by as.matrix).

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread Ed Siefker
I did read that, and I still don't understand why I have a column called row.names. I used row.names = NULL in order to get numbered row names, which was successful: row.names(BACS) [1] 1 2 3 4 I don't see what this has to do with an extraneous column name. Can you be more explicit as to what

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread Bert Gunter
Actually, I think it's ?data.frame that he should read. The salient points are that: 1. All data frames must have unique row names. If not provided, they are produced. Row numbers **are** row names. 2. The return value of read methods are data frames. -- Bert On Mon, Jun 4, 2012 at 11:05 AM,

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread Rui Barradas
Hello, It must be something else. Mandatory row names have nothing to do with a column header. I've put the data example in a tab separated file and the strange behavior was not reproduced. read.delim(test.txt, row.names=NULL, fill=TRUE) start stop Symbol Insert.sequence

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread David L Carlson
04, 2012 1:16 PM To: dcarl...@tamu.edu Subject: Re: [R] Why do I have a column called row.names? I did read that, and I still don't understand why I have a column called row.names. I used row.names = NULL in order to get numbered row names, which was successful: row.names(BACS) [1] 1 2

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread Marc Schwartz
To jump into the fray, he really needs to read the Details section of ?read.table and arguably, the source code for read.table(). It is not that the resultant data frame has row names, but that an additional first *column name* called 'row.names' is created, which does not exist in the source

Re: [R] Why do I have a column called row.names?

2012-06-04 Thread Brian Diggs
On 6/4/2012 12:12 PM, Marc Schwartz wrote: To jump into the fray, he really needs to read the Details section of ?read.table and arguably, the source code for read.table(). It is not that the resultant data frame has row names, but that an additional first *column name* called 'row.names' is