[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] Strange behavior using subset
From:       Ben Bolker <bolker () ufl ! edu>
Date:       2007-08-31 21:07:00
Message-ID: loom.20070831T230539-724 () post ! gmane ! org
[Download RAW message or body]

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

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic