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

Arguments

x

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

species

NULL for all species or integer indicating species.

value

numeric new target.

Value

numeric vector.

Examples

# \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
# }