funstack: Population size in MSDem

View source: R/kcline.r View source: R/funstack.r

funstackR Documentation

Population size in MSDem

Description

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

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

Usage

funstack(
  res1,
  ivar,
  iage,
  isex,
  iregions,
  icnt,
  itob,
  iiscen,
  ipropgraph = F,
  iscale = 1,
  ireg = ireg
)

funstack(
  res1,
  ivar,
  iage,
  isex,
  iregions,
  icnt,
  itob,
  iiscen,
  ipropgraph = F,
  iscale = 1,
  ireg = ireg
)

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

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.