generate a population distribution (as a vector of counts)

mk_Nvec(
  age_cat = mk_agecats(),
  Ntot = 1e+06,
  dist = c("unif", "rand"),
  names = FALSE
)

Arguments

age_cat

age categories (made with `mk_agecats()`)

Ntot

total population size

dist

(character) either "unif" for uniform or "rand" for a random population distribution

names

(logical) return a named vector? (names are given age categories)