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

dp.subset(x, space, species, points)

# S3 method for RapData
dp.subset(x, space, species, points)

# S3 method for RapUnsolOrSol
dp.subset(x, space, species, points)

Arguments

x

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

space

integer vector to specify the index of the space to subset demand points from.

species

integer vector to specify the index of the species to subset demand points from.

points

integer vector to specify the index of demand points to subset.

Value

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

Examples

# \dontrun{
# load data
data(sim_ru)

# generate new object with first 10 planning units
sim_ru2 <- dp.subset(sim_ru, 1, 1, seq_len(10))
# }