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

pu.subset(x, pu)

# S3 method for RapData
pu.subset(x, pu)

# S3 method for RapUnsolOrSol
pu.subset(x, pu)

Arguments

x

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

pu

integer vector to specify the index of planning units 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 <- pu.subset(sim_ru, seq_len(10))
# }