calculate_proportion: Calculate proportion of small areas in the higher-level...

View source: R/calculate.R

calculate_proportionR Documentation

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

Description

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

Usage

calculate_proportion(data, var, higher_level_geography)

Arguments

data

Data frame containing a variable to be aggregated and a higher level geographical grouping variable

var

Name of the variable in the data frame for which you want to calculate proportions. It must have only two possible values

higher_level_geography

Name of the variable in the data frame containing the higher level geography names/codes

Examples

## Not run: 
  calculate_proportion(IMD::imd_england_lsoa, IMD_decile, msoa_code, n_people)

## End(Not run)


britishredcrosssociety/geographr documentation built on Dec. 16, 2024, 8:20 p.m.