cancensus: Access, Retrieve, and Work with Canadian Census Data and Geography

Integrated, convenient, and uniform access to Canadian Census data and geography retrieved using the 'CensusMapper' API. This package produces analysis-ready tidy data frames and spatial data in multiple formats, as well as convenience functions for working with Census variables, variable hierarchies, and region selection. API keys are freely available with free registration at <>. Census data and boundary geometries are reproduced and distributed on an "as is" basis with the permission of Statistics Canada (Statistics Canada 2001; 2006; 2011; 2016; 2021).

Version: 0.5.7
Depends: R (≥ 2.10)
Imports: digest (≥ 0.1), dplyr (≥ 0.7), httr (≥ 1.0.0), jsonlite (≥ 1.0), rlang
Suggests: knitr, ggplot2, leaflet, mapdeck, rmarkdown, readr, scales, sp, sf, geojsonsf, tidyr, lwgeom, xml2
Published: 2024-02-10
DOI: 10.32614/CRAN.package.cancensus
Author: Jens von Bergmann [aut] (API creator and maintainer), Dmitry Shkolnik [aut, cre] (Package maintainer, responsible for correspondence), Aaron Jacobs [aut]
Maintainer: Dmitry Shkolnik <shkolnikd at>
License: MIT + file LICENSE
NeedsCompilation: no
Citation: cancensus citation info
Materials: README NEWS
In views: OfficialStatistics
CRAN checks: cancensus results


Reference manual: cancensus.pdf
Vignettes: Additional datasets: Structural type of dwelling by document type
Making maps with cancensus
Additional datasets: Annual T1FF taxfiler data
Data discovery
Finding intersecting geometries from custom data
StatCan attribute files
StatCan WDS


Package source: cancensus_0.5.7.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release (arm64): cancensus_0.5.7.tgz, r-oldrel (arm64): cancensus_0.5.7.tgz, r-release (x86_64): cancensus_0.5.7.tgz, r-oldrel (x86_64): cancensus_0.5.7.tgz
Old sources: cancensus archive

Reverse dependencies:

Reverse suggests: cmhc, tongfen


Please use the canonical form to link to this page.