Learn R Programming

raptr (version 0.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)
"dp.subset"(x, space, species, points)
"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.

See Also

RapData, RapUnsolved, RapSolved.

Examples

Run this code
# load data
data(sim_ru)
# generate new object with first 10 planning units
sim_ru2 <- dp.subset(sim_ru, 1, 1, 1:10)

Run the code above in your browser using DataLab