plot_life_cycleto ensure that nodes are placed in the correct order. Additional argument
node_orderalso allows nodes to be placed in any arbitrary order.
life_expect_meanto ensure that outputs are consistent (as vectors).
is_leslie_matrixfunction to detect a Leslie matrix.
leslie_collapsefunction to aggregate a Leslie matrix to a desired dimension. This function is similar to
mpm_collapsebut it will ensure that the returned aggregated matrix is also in the form of a Leslie matrix. Code contributed by Richard A. Hinrichsen (@hinrich62).
life_expect_var(#193) corrected (contribution from Chrissy Hernández, @chrissy3815). Note that
life_expect_varnow function slightly differently. Be aware!
shape_survcan now accept matrices directly. In previous versions, these functions required input of
mxtrajectories, but now the functions can optionally use
mpm_to_...functions to create these vectors internally (#174).
mpm_to_tablefunction. This allows users to optionally remove the final row of the life table to prevent the artificial inflation of mortality/hazard caused by the fact that the final age-class is assumed to be closed (and hence all individuals must die).
Fixed an error in the
entropy_d function, which calculates Demetrius’s entropy.
Added two methods to calculate generation time in
gen_time: average parent-offspring age difference & expected age at first reproduction (#183).
mpm_to_tableand related functions.
xmaxargument values across age-from-stage functions.
ggternpackage. This package was not available for some builds of R and thus caused problems for CRAN.
Released on Github on 25th April 2021
name_stagesfor (re)naming MPM stages.
lifeTimeRepEventswith specific functions for events (
standard_stagesto identify reproductive stages either logically (TRUE/FALSE) or by the standardised set of reproductive stages (propagule, pre-reproductive, reproductive and post-reproductive).
makeLifeTableto create new function,
lifetable_convertfunction to convert between types of life table (hazard, survivorship and survival probability).
vitalRatePerturbationfunctions with enhanced perturbation functions:
utils.R) to do various tasks like check validity of matrices, calculate mean matrices, calculate matrix inverse.