5  Introduction to the cmhc package

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

The package is designed to work in conjunction with the cancensus package and census geographic identifiers.

To install the package from CRAN use.

Code

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.