prob.subset | R Documentation |
This function subsets out probabilities assigned to planning units above a threshold. It effectively sets the probability that species inhabit planning units to zero if they are below the threshold.
prob.subset(x, species, threshold)
## S3 method for class 'RapData'
prob.subset(x, species, threshold)
## S3 method for class 'RapUnsolOrSol'
prob.subset(x, species, threshold)
x |
|
species |
|
threshold |
|
RapData()
or RapUnsolved()
object depending
on input object.
RapData()
, RapUnsolved()
,
RapSolved()
.
## Not run:
# load data
data(sim_ru)
# generate new object with first 10 planning units
sim_ru2 <- prob.subset(sim_ru, seq_len(3), c(0.1, 0.2, 0.3))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.