Code
install.packages("cmhc")
The cmhc R package (von Bergmann 2022) interfaces with the CMHC Housing Market Information Portal (HMIP) and allows programmatic and reproducible access to CMHC data. This gives access to data from four major CMHC surveys
Starts and Completions Survey (Scss), which has data on housing construction covering starts, completions, units under construction, length of construction, absorbed and unabsorbed units and their prices.
Rental Market Survey (Rms), which surveys the purpose-built rental market on an annual (and for some time twice-annual) basis. It has data on vacancy rates, availability rates, rents, fixed sample rent change and the overall rental universe by bedroom type, structure size, and year of construction.
Secondary Rental Market Survey (Srms), which covers parts of the secondary market rental market with data on condominium apartment vacancy rates, rents, and number and share of rented units, as well as some information on other secondary rentals.
Senior’s housing (Seniors), which gives data on seniors housing of various levels of assistance.
Census data (Census), which holds several housing related cross-tabulations.
Core Housing Need (Core Housing Need) related cross-tabulations.
The package is designed to work in conjunction with the cancensus package and census geographic identifiers.
To install the package from CRAN use.
install.packages("cmhc")
The nature of the CMHC backend makes it at times challenging to find data, the cmhc package has several convenience functions to facilitate data discovery. The list_…
functions, for example list_cmhc_surveys()
list options. The select_cmhc_table()
allows the interactive selection of data tables in the console, and returns the syntax for the desired function call to acquire the data.