Hi,

I have doubts in using subset command. I have a list of, lets say, 15 species
and I want to make a subset with only 2 of them. I’m the command
data2 <- subset(data1, species=="sp1"|species=="sp2")

Nevertheless, when I ask for the summary (summary(data2)) the others species
names still apearing. Also I tried
data2<-data1(data1$species %in% c("sp1","sp2")),]

But I got the same result. How can I get a “clean” subset?

Thanks for any help. Best regards.

Antonio Olinto



-------------------------------------------------
WebMail Bignet - O seu provedor do litoral
www.bignet.com.br

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to