funpyrwrapper: Population size in MSDem

View source: R/pyramidwrapper.r

funpyrwrapperR Documentation

Population size in MSDem

Description

This function allows you to calculate population size by sex or by regions using the MSDem output

Usage

funpyrwrapper(
  res1,
  ivar = "pop",
  iTime,
  iiscen,
  iscale = 1,
  facet.scale = "fixed",
  ititle.text = NULL,
  icol = "xxx"
)

Arguments

res1

data

agel

lower limit - default is 0

ageu

upper limit - default it 'max'

period

specific periods - default is NULL

sex

specific sex - default is NULL

bysex

group by sex - default is FALSE

reg

specific region(s)

byreg

group by regions - default is FALSE

resi

specific residence(s)

byresi

group by residences - default is FALSE

Value

R list with five data.table 1) var_def 2) state_space 3) mig_dom 4) mig_int 5) results


kcsamir/mdpop documentation built on Feb. 16, 2025, 7:48 a.m.