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.