Re: [R] importing text file with duplicate rows / indexing rows and columns

2004-05-16 Thread grr
Thank you so much. I'll tell it not to use the row names. Also, if you have advice for basic texts for learning the programming language, please let me know. I am using Dalgaard's Introductory Statistics with R, but would like to find something with more of the command line options, regardless o

Re: [R] importing text file with duplicate rows / indexing rows and columns

2004-05-15 Thread Prof Brian Ripley
The issue is not `duplicate rows' but duplicated row names. You asked R explicitly to make a column into row names -- if they are not suitable row names, don't do that. You can remove duplicated rows later (see ?unique) but you cannot have duplicated row names in a data frame so leave them as

[R] importing text file with duplicate rows / indexing rows and columns

2004-05-15 Thread grr
Could somebody advise me about importing a txt file as a frame? I am using the command: test <- read.delim ("~/docs/perl/expr_ctx.txt2", header=T, sep = "\t", row.names = 1) This gives me an error because there are duplicate rows. In the txt file, the columns are unique subjects and the rows ar