Re: [R] row.name in data.frame

2004-10-05 Thread Prof Brian Ripley
?read.table and the R Data Import/Export manual (and An Introduction to R) do all explain this. To use header=TRUE the header should not name the row names column, *OR* you need to add row.names=1 to the call. So just omit `Species'. On Tue, 5 Oct 2004, S Peri wrote: Hi Group, I have a

RE: [R] row.name in data.frame

2004-10-05 Thread Nordlund, Dan
Does this do what you want: mydata -read.table('mydata.txt',header=TRUE, row.names=1) see ?read.table Daniel Nordlund Research and Data Analysis Washington State Department of Social and Health Services P.O. Box 45204 Olympia, WA 98504-5204 -Original Message- From: S Peri