Learn R Programming

onmaRg (version 1.0.3)

om_data: 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)

Value

A dataframe containing the Marginalization Index for every geographic identifier

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.

Examples

Run this code
DA_2016_data <- om_data(2016, "DAUID")

Run the code above in your browser using DataLab