Re: [R] selecting only specific rows in R

2010-06-05 Thread Charles C. Berry
On Sat, 5 Jun 2010, stephen sefick wrote: Reproducible dummy example, as to the posting guide. look at unique- you want to subset the data frame on all of the non-unique entries in the species column... x[x!=unique(x[,"species"]),] Something like that, maybe. If I had some data then I could

Re: [R] selecting only specific rows in R

2010-06-05 Thread stephen sefick
Reproducible dummy example, as to the posting guide. look at unique- you want to subset the data frame on all of the non-unique entries in the species column... x[x!=unique(x[,"species"]),] Something like that, maybe. If I had some data then I could probably figure it out. Use dput() or fake d

[R] selecting only specific rows in R

2010-06-05 Thread Adrienne Keller
Hi, I have a data frame with columns as follows: tree species (independent variable) and several dependent variables (e.g. carbon, nitrogen, phosphorus). Each row represents one tree sample. Some tree samples are unique species in the data frame while other species were replicated (i.e. row