knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
title: "Country summary Excel files" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Country summary Excel files} %\VignetteEngine{knitr::rmarkdown} %\VignetteEncoding{UTF-8}
knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The country summary Excel files provides an overview of country data and calculations for the WHO Triple Billions:
It provides a stand-alone country summary of the dashboard data and the calculation of the billion contribution estimates for each country. The calculations are based on reported/estimated data values together with projections and scenarios.
The billion dashboard can be found here.
For each billion:
The indicator sheet details names and units of indicators and sub-indicators grouped by billion.
Each billion summary sheet is tailored to the relevant billion. Each contains:
Type: type of data:
Please refer to the GPW13 Methods report and the Triple Billion Dashboard FAQ.
Some of the calculations are made within the workbook in order to demonstrate the underlying calculation. In some instances, this may result in slight differences relative to the dashboard due to rounding issues.
The contributions to the billion are based on projections and these will change as new data is reported.
The uncertainty attached to the indicator and billion contribution estimates are large.
All empty cells in tables denote missing data entries.
All population figures in those sheets are from the World Population Prospects figures from the UN Department of Economic and Social Affairs
Two functions exists:
export_country_summary_xls()
: export a specific countryexport_all_countries_summaries_xls()
: export all countries present in the datasetThe billion
parameter allows to export a specific billion or all at once.
library(rapporteur) # Export HEP summary for Afghanistan: export_country_summary_xls(all_billions_example, "AFG", "hep") # Export all billions for Canada: export_country_summary_xls(all_billions_example, "CAN", "all") # By default, files are saved to "outputs" folder, but this can be modified with `output_folder'. # If the folder doesn't exists, it will be created (recursively). export_country_summary_xls(all_billions_example, "CAN", "all", output_folder = "outputs/all/CAN") # Exporting all billions for all countries in the dataset: export_all_countries_summaries_xls(all_billions_example, "all", output_folder = "outputs/all")
rapporteur
relies on a country summary template to generate the final output. The template can be found in inst/extdata/country_summary_template.xlsx
. The template also demonstrate how the the Excel sheets are expected to work.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.