get_dists | R Documentation |
This function retrieves the subnational nutrient intake distributions modelled by Passarreli et al. (in prep).
get_dists(nutrients = NULL, isos = NULL, sexes = NULL, ages = NULL)
nutrients |
A character vector of nutrients of interest (e.g., "Iron", "Calcium", etc.) |
isos |
A character vector of ISO3s of countries of interest (e.g., "USA") |
sexes |
A character string of sexes of interest (i.e., "M", "F", or "MF") |
ages |
A numeric vector of ages of interest (e.g., 10:50, 0:75, 55:90) |
A data frame with the parameters describing the requested subnational intake distributions
dists_all <- get_dists()
dists_usa <- get_dists(isos="USA")
dists_usa_iron <- get_dists(isos="USA", nutrients="Iron", sexes="MF")
dists_usa_iron_2040 <- get_dists(isos="USA", nutrients="Iron", sexes="MF", ages=20:40)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.