View source: R/kin_multi_stage_time_variant_2sex.R
create_cumsum_df | R Documentation |
Title Accumulated kin by each age of Focal, for each time period, and cohort of birth
create_cumsum_df(
kin_matrix_lists,
kin_names,
years,
start_year,
na,
ns,
specific_kin = NULL
)
kin_matrix_lists |
list of lists of kin matrices: list( list(X_focal), list(X_parents), ... ). Outer list is length 14 = number of kin. Inner lists have lenght = timescale so list(X_focal) = list(X_focalyear1,X_focalyear2,...,X_focalyearlast) |
kin_names |
list of characters. Corresponding to above lists: list("F","m",....) |
years |
vector. The timescale on which we implement the kinship model. |
start_year |
. First year of varying vital rates (e.g., if years = 1990:2000 then start_year = 1990) |
na |
numeric. Number of ages. |
ns |
numeric. Number of stages. |
specific_kin |
character. names of kin we wish to analyse, e.g., list("os","ys"). If null returns all 14. |
A data frame which gives for each age of Focal at each year in the timescale, Focal's experienced number kin demarcated by stages (summed over all ages)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.