MountainMath
  • About
  • Blog

cancensus

R package for accessing and working with Canadian census data via the CensusMapper API.

cancensus is an R package that provides a consistent interface to Canadian census data through the CensusMapper API. It lets users pull census variables at any geographic level — from provinces down to dissemination areas — directly into R as tidy data frames ready for analysis.

The package supports census years from 1996 through 2021 and handles the complexity of the census variable hierarchy, geographic joins, and data normalization, enabling reproducible workflows for census analysis. A free CensusMapper API key is required for requests.

View cancensus Documentation