View source: R/template_regfactsheet.R
template_RegFactsheet | R Documentation |
Generate all country factsheet
template_RegFactsheet(
year = 2022,
region = "Americas",
lag = 10,
folder = "Report"
)
year |
Numeric value of the year (for instance 2020) |
region |
Bureau that covers all the countrie factsheet to generate |
lag |
Number of year to used as comparison base |
folder |
folder within your project where to put the generated report. Folder will be created if it does not exist |
nothing the file for the report is generated
# template_RegFactsheet(year = 2022,
# region = "Europe", lag = 10,
# folder = "Report")
## We can also generate all factsheets in a loop for 2022
# region <- ForcedDisplacementStat::reference |>
# dplyr::distinct(UNHCRBureau) |>
# dplyr::filter(!(is.na(UNHCRBureau))) |>
# dplyr::pull()
#
# for( reg in region) {
# unhcrdatapackage::template_RegFactsheet(year = 2022,
# region = reg, lag = 10,
# folder = "Report")
# }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.