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)

Arguments

x

RapData(), RapUnsolved(), or RapSolved() object.

species

integer, or character vectors to specify the index or species names to subset.

Value

RapData() or RapUnsolved() object depending on input object.

Examples

# \dontrun{
# load data
data(sim_ru)

# generate new object with only species 1
sim_ru2 <- spp.subset(sim_ru, 1)
# }