| popdemo-deprecated {popdemo} | R Documentation |
Deprecated functions in the popdemo package
Description
Deprecated functions in the popdemo package
Usage
Cohen.cumulative(...)
convergence.time(...)
inertia.tfa(...)
inertia.tfamatrix(...)
inertia.tfsens(...)
inertia.tfsensmatrix(...)
is.matrix_ergodic(...)
is.matrix_irreducible(...)
is.matrix_primitive(...)
Keyfitz.delta(...)
projection.distance(...)
tfa(...)
tfamatrix(...)
tfsens(...)
tfsensmatrix(...)
minCS(...)
reactivity(...)
firststepatt(...)
Arguments
... |
Parameters to be passed to the new function versions |
Details
Many functions have become deprecated as of popdemo_1.0-0 (meaning they will stop working at some point in the future). In most cases, this is because functions needed to be re-named. For now the older function names will work but issue a warning, but you should use the new function names wherever possible. Please update your code, and I'm sorry for the inconvenience!
- Avoiding S3 troubles
-
Most deprecated functions needed to be renamed because they included a period in the function name: the new function names don't use periods, which is a better approach for playing nicely with the S3 object-oriented system (see Hadley Wickham's OO field guide for more info). These are:
Cohen.cumulativenow called CohenDconvergence.timenow called convtinertia.tfanow called tfa_inertiainertia.tfamatrixnow called tfam_inertiainertia.tfsensnow called tfs_inertiainertia.tfsensmatrixnow called tfsm_inertiais.matrix_ergodicnow called isErgodicis.matrix_irreduciblenow called isIrreducibleis.matrix_primitivenow called isPrimitiveKeyfitz.deltanow called KeyfitzDprojection.distancenow called projectionD - Consistency
-
Some other functions have been renamed to keep consistency with new functions, and also to further avoid problems with S3 methods by making sure classes and functions don't have the same names:
tfanow called tfa_lambdatfamatrixnow called tfam_lambdatfsensnow called tfs_lambdatfsensmatrixnow called tfsm_lambda - Hidden functions
-
Some functions have been made internal (they're "hidden" but you can still use them):
minCSnow called .minCStfnow called .tf - Merged functions
-
Two functions are deprecated because they have been merged into one:
reactivity,firststepattnow handled by reac.Before,
reactivityhandled first-timestep amplification andfirststepatthandled first-timestep attenuation. This is silly, because a projection EITHER amplifies OR attenuates in the first timestep. Desptite the semantics,reacnow deals with both amplification and attenuation in the first timestep, everything that was calculable in the previous two functions is also calculable in the one new function.