R/expand.R
expand.Rd
Function expand expands a data frame from animals as observations to animal-years as obserations
expand(
filename,
start_year = 1976,
current_year = NULL,
fem_age_mat = 10,
fem_age_senesc = 43,
ages2stages = NULL
)
A file location (csv file) with births and deaths of each animal
Starting year for the expanded data, starts at 1976
End year for the expanded data, defaults to current calendar year
Female age at maturity, 10 years of age by default
Female age at reproductive senescence, defaults to 43
A data frame of mapping ages and sexes to stages