aggregate_proportion | R Documentation |
Calculate proportion of small areas in the higher-level geography that are within the 10% most deprived areas in the nation.
aggregate_proportion(data, x, higher_id)
data |
A dataframe containing a variable to be aggregated and a higher level geographical grouping variable. |
x |
Name of the variable in the dataframe for which you want to calculate proportions. It must have only two possible values. |
higher_id |
Name of the variable in the dataframe containing the higher level geography names/codes. |
## Not run:
aggregate_proportion()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.