Learn R Programming

raptr (version 1.0.1)

dp.subset: Subset demand points

Description

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

Usage

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)

Value

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

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.

See Also

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

Examples

Run this code
if (FALSE) {
# load data
data(sim_ru)

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

Run the code above in your browser using DataLab