This function sets or returns the target amounts for each species.
amount.target(x, species)
amount.target(x, species) <- value
# S3 method for RapData
amount.target(x, species = NULL)
# S3 method for RapData
amount.target(x, species = NULL) <- value
# S3 method for RapUnsolOrSol
amount.target(x, species = NULL)
# S3 method for RapUnsolOrSol
amount.target(x, species = NULL) <- value
RapData()
, RapUnsolved()
, or
RapSolved()
object.
NULL
for all species or integer
indicating
species.
numeric
new target.
numeric
vector.
# \dontrun{
# load data
data(sim_rs)
# extract amount targets for all species
amount.target(sim_rs)
#> uniform normal bimodal
#> 0.2 0.2 0.2
# set amount targets for all species
amount.target(sim_rs) <- 0.1
# extract amount targets for first species
amount.target(sim_rs, 1)
#> uniform
#> 0.1
# set amount targets for for first species
amount.target(sim_rs, 1) <- 0.5
# }