om_data: Load OnMarg data

View source: R/om_data.R

om_dataR Documentation

Load OnMarg data

Description

This function loads Public Health Ontario's Ontario Marginalization Index data into a dataframe which includes geographic variables (e.g. DA labels, CSD labels) and associated values for the four OnMarg domains of Instability, Material Deprivation, Dependency and Ethnic Concentration.

Usage

om_data(year, level)

Arguments

year

Integer year of data to load

level

The level of precision to load, this can be "DAUID", "CTUID", "CSDUID", "CCSUID", "CDUID", "CMAUID", "PHUUID", "LHINUID", or "LHIN_SRUID"

Details

If the data file is unable to be downloaded, an error message will be produced.

Value

A dataframe containing the Marginalization Index for every geographic identifier

Examples

DA_2016_data <- om_data(2016, "DAUID")

onmaRg documentation built on July 26, 2023, 5:08 p.m.