View source: R/lifetable_calculate.R
| lifeTable_calculate_all | R Documentation |
Convenience wrapper that computes all life table parameters of one data set in a single call: cohort size, mean fecundity, the age-stage survival rates, the age-specific rates and the derived population parameters (R0, r, lambda, T).
lifeTable_calculate_all(lt, fecundity = TRUE)
lt |
A |
fecundity |
Logical; whether to compute the reproduction-related
parameters (F, F_xj, m_x, R0, r, lambda, T). |
The intermediate results are passed on internally, so nothing
is computed twice: s_xj first, then l_x, F_xj and m_x, then r and
R0, and finally lambda = exp(r) and T = log(R0) / r.
A named list with elements N, F, sxj,
lx, fxj, mx, ex, R0, r,
lambda and T
With fecundity = FALSE (or when no oviposition data are
supplied), fxj and mx are NULL and F,
R0, r, lambda, T are NA_real_.
The individual calc_* functions;
lifeTable_calculate for the batch workflow.
f <- system.file("extdata", "lifetable_example.csv", package = "insectecol")
lt <- lifeTable_read(f)
results <- lifeTable_calculate_all(lt)
results$R0
lifeTable_calculate_all(lt, fecundity = FALSE)$N
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.