Subset species from a RapData()
, RapUnsolved()
, or
RapSolved()
object.
spp.subset(x, species)
# S3 method for RapData
spp.subset(x, species)
# S3 method for RapUnsolOrSol
spp.subset(x, species)
RapData()
, RapUnsolved()
, or
RapSolved()
object.
integer
, or character
vectors to specify the
index or species names to subset.
RapData()
or RapUnsolved()
object depending
on input object.
# \dontrun{
# load data
data(sim_ru)
# generate new object with only species 1
sim_ru2 <- spp.subset(sim_ru, 1)
# }