aggregate_proportion: Calculate the 'proportion' scores when aggregating up small...

View source: R/aggregate.R

aggregate_proportionR Documentation

Calculate the 'proportion' scores when aggregating up small areas

Description

Calculate proportion of small areas in the higher-level geography that are within the 10% most deprived areas in the nation.

Usage

aggregate_proportion(data, x, higher_id)

Arguments

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.

Examples

## Not run: 
aggregate_proportion()

## End(Not run)

britishredcrosssociety/compositr documentation built on Nov. 4, 2024, 5:21 p.m.