generate_birth_counts: generate_birth_counts

Description Usage Arguments Value Examples

View source: R/generate_birth_counts.R

Description

a function that returns a numeric vector of birth counts from the arguments of total births, a range of birth dates and an indicted birth rate

Usage

1
generate_birth_counts(total_births, birth_dates, delta)

Arguments

total_births

the total number of births between maximum and minimun birth_dates given.

birth_dates

the calender dates of births.

delta

the time step between consecurtive birth_dates

Value

Returns a vector of bith counts from the inputs total_births, delta and birth_dates of length min-birth_dates:max-birth_dates

Examples

1
2
generate_birth_counts(1000, 1984:1990, 1)
generate_birth_counts(10000, 2005 : 2018, 1)

laurettemhlanga/seams_population_simulation documentation built on Jan. 17, 2019, 12:45 a.m.