amount.target | R Documentation |
This function sets or returns the target amounts for each species.
amount.target(x, species)
amount.target(x, species) <- value
## S3 method for class 'RapData'
amount.target(x, species = NULL)
## S3 replacement method for class 'RapData'
amount.target(x, species = NULL) <- value
## S3 method for class 'RapUnsolOrSol'
amount.target(x, species = NULL)
## S3 replacement method for class 'RapUnsolOrSol'
amount.target(x, species = NULL) <- value
x |
|
species |
|
value |
|
numeric
vector.
RapData()
, RapResults()
,
RapSolved()
.
## Not run:
# load data
data(sim_rs)
# extract amount targets for all species
amount.target(sim_rs)
# set amount targets for all species
amount.target(sim_rs) <- 0.1
# extract amount targets for first species
amount.target(sim_rs, 1)
# set amount targets for for first species
amount.target(sim_rs, 1) <- 0.5
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.