dp.inputs.external.pop | R Documentation |
Spectrum users may enter externally-produced population targets by sex, age,
and year that can be used to align Spectrum population outputs with a
reference population projection. dp.inputs.external.pop
returns those
population targets in long or wide format.
dp.inputs.external.pop(
dp.raw,
direction = "wide",
first.year = NULL,
final.year = NULL
)
dp.raw |
DemProj module data in raw format, as returned by
|
direction |
Request "wide" (default) or "long" format data. |
first.year |
First year of the projection. If |
final.year |
Final year of the projection. If |
A data frame.
Use of an external population file is optional and rare in Spectrum. Use
dp.inputs.use.external.pop
to check whether to check whether an
external population was specified. Note that dp.inputs.external.pop
will return population sizes of 0 for all years, sexes and ages if no
external population was specified.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.