sum_con_rows: sum_con_rows

Description Usage Arguments Value

Description

This function calculates the total population in each zone and returns a vector of these totals This function is essential because there are multiples of the population in the constraint tables, i.e. all 'age_' variables sum to the population, as do all ‘sex_' variables, etc. so it’s not possible to just take 'rowSums()'

Usage

1
sum_con_rows(zone_size)

Arguments

zone_size

usually one of pilot_con, pilot_con_lsoa, or pilot_con_msoa These should be unquoted because they (should be) objects in .GlobalEnv

Value

Vector of zone populations


philmikejones/thesis documentation built on May 31, 2019, 2:50 p.m.