spp.subset {raptr}R Documentation

Subset species

Description

Subset species from a RapData(), RapUnsolved(), or RapSolved() object.

Usage

spp.subset(x, species)

## S3 method for class 'RapData'
spp.subset(x, species)

## S3 method for class '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.

See Also

RapData(), RapUnsolved(), RapSolved().

Examples

## Not run: 
# load data
data(sim_ru)

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

## End(Not run)

[Package raptr version 1.0.1 Index]