View source: R/simulate_species.r
| abundances | R Documentation |
Generates species abundances based on species response functions and environmental variables.
abundances(env, spp, nc)
env |
Environmental variables.
Usually generated by |
spp |
Species parameters. Usually generated by |
nc |
Count sum to be simulated. If omitted no simulation of the counting process is carried out. |
A list with two elements:
spp |
A data frame with species abundances. |
env |
A data frame with environmental variables. |
Mathias Trachsel and Richard J. Telford
Minchin, P.R. (1987) Multidimensional Community Patterns: Towards a Comprehensive Model. Vegetatio, 71, 145-156. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/BF00039167")}
make.env, species
spec <- species(
nspp = 30, ndim = 10, Amax = runif, fun = runif,
xpar = c(-50, 150), srange = 200, alpha = 4, gamma = 4
)
env.var <- make.env(100,
elen = rep(100, 10), emean = rep(50, 10),
edistr = "uniform", ndim = 10
)
spec.abun <- abundances(env.var, spec, 200)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.