downloadAsfr | R Documentation |
We extract ASFRx
from wpp2019
, interpolated to exact dates. Different methods available.
A vector of countries can handle, but with an unique sex. Row names are not indicative of countries.
downloadAsfr(Asfrmat, location = NULL, AsfrDatesIn, method = "linear")
Asfrmat |
numeric. |
location |
vector. UN Pop Div |
AsfrDatesIn |
numeric. Vector of decimal dates. |
method |
character. Could be |
numeric matrix interpolated asfr
# Total fertility ratio calculated from ASFRx downloaded from WPP19.
# See `downloadnLx` for analogous examples on multiple countries or using codes instead of names.
ASFR_Arg <- downloadAsfr(Asfrmat = NULL, location = "Argentina", AsfrDatesIn = 1950:2025)
## Not run:
plot(1950:2025, as.numeric(colSums(ASFR_Arg))*5, xlab = "Year", ylab="TFR", ylim=c(1.5,4), t="l")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.