Description Usage Arguments Value Examples
Aggregate by country, country and year, or some other weight.
1 2 3 | aggregate_by_country(df, col.value = "value",
col.country = "country_id",
lyrs.dat.csv = layers_data.csv)
|
df |
Input data frame. |
col.value |
Column in data frame containing the value to be aggregated. |
col.country |
Column in data frame containing the country_id. |
col.weight |
Column in data frame containing the weight. |
These functions aggregate to region by either country, country and year, or just a weight. These are mostly only used for aggregating a goal's status or trend calculations to region.
1 2 3 4 5 6 | ## Not run:
aggregate_by_country(df, col.value='value', col.country='country_id')
aggregate_by_country_weighted(df, w, col.value='value', col.country='country_id', col.weight='weight')
aggregate_by_country_year(df, col.value='value', col.country='country_id')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.