[R] Strange behavior using subset
Ben Bolker
bolker at ufl.edu
Fri Aug 31 23:07:00 CEST 2007
James Milks <james.milks <at> wright.edu> writes:
>
> When I then further select by species, (site.name1<-subset(site.name,
> Species=c("species 1", "species 2", "species 4", "species 7",
> "species 8"))), I get an error message:
>
>
I think you probably want
site.name1<-subset(site.name,
Species %in% c("species 1", "species 2", "species 4", "species 7",
"species 8"))
cheers
Ben Bolker
More information about the R-help
mailing list