Description Usage Arguments Value
Extract the number of individuals in each stage from a dataframe of transitions.
1 | get_state_vector(transitions, stage = NULL, sort = NULL)
|
transitions |
a dataframe of observations of individuals in different stages |
stage |
the name of the variable with the stage information |
sort |
a vector of stage names in the desired order. Default is the order of levels in stage. |
a vector of the counts of observations in each level of stage.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.