Hack into CMHC data portal to pull out csv tables

get_cmhc(query_params)

Arguments

query_params

Query parameters to be sent to CMHC.

returns dataframe with CMHC data, tile and subtitle are set as attributes

Examples

table <- cmhc_table_list$`Rms Vacancy Rate Time Series`
region <- cmhc_region_params_from_census("59933")
dat <- get_cmhc(cmhc_timeseries_params(table_id = table, region = region))