View source: R/per_capita_household_size.R
per_capita_household_size | R Documentation |
Returns the per capita household size for a location given
its household size distribution. See get_abs_household_size_distribution()
function for retrieving household size distributions for a given place.
per_capita_household_size(
household_data,
household_size_col = household_size,
n_people_col = n_people
)
household_data |
data set with information on the household size distribution of specific state or LGA. |
household_size_col |
bare variable name of the column depicting the
household size. Default is 'household_size' from
|
n_people_col |
bare variable name of the column depicting the total
number of people belonging to the respective household size. Default is
'n_people' from |
Numeric of length 1 - the per capita household size for a given state or LGA.
Nick Golding
demo_data <- get_abs_household_size_population(lga = "Fairfield (C)")
demo_data
per_capita_household_size(
household_data = demo_data,
household_size_col = household_size,
n_people_col = n_people
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.