wpp_year: Edit/Retrieve WPP Year.

Description Usage Arguments Details Value Examples

Description

Change/get the WPP year which determines from which wpp package data are retrieved.

Usage

1
2
3
set.wpp.year(wpp.year, sim.dir = NULL)

get.wpp.year()

Arguments

wpp.year

Currently only 2015 is available.

sim.dir

Simulation directory used for probability calculations.

Details

The package operates on the wpp2015BayesMig and wpp2015 data packages only. Using the set.wpp.year has the side effect of clearing up used data from the memory. It can be used to change the simulation directory which has to be a directory generated by the bayesPop package.

Value

get.wpp.year returns the wpp year used through out the package.

Examples

1
get.wpp.year() # by default the wpp2015 is used

PPgp/wppExplorerBayesMig documentation built on May 7, 2019, 11:52 p.m.