amount.held | R Documentation |
This function returns the amount held for each species in a solution.
amount.held(x, y, species)
## S3 method for class 'RapSolved'
amount.held(x, y = 0, species = NULL)
x |
|
y |
Available inputs include: |
species |
|
base::matrix()
or numeric
vector depending on
arguments.
RapResults()
, RapSolved()
.
## Not run:
# load data
data(sim_rs)
# amount held (%) in best solution for each species
amount.held(sim_rs, 0)
# amount held (%) in best solution for species 1
amount.held(sim_rs, 0, 1)
# amount held (%) in second solution for each species
amount.held(sim_rs, 2)
# amount held (%) in each solution for each species
amount.held(sim_rs, NULL)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.