The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

canpumf: Parse StatCan PUMF Files

Facilitate working with Statistics Canada (StatCan) Public Use Microdata Files (PUMF). Enables downloading of available PUMF data, parsing of metadata from command files or other sources to infer the layout structure, variable labels and value labels as well as missing data values, and returns a connection to a 'DuckDB' database with the labelled data. Data and documentation come from Statistics Canada's Public Use Microdata Files <https://www.statcan.gc.ca/en/microdata/pumf>, distributed under the Statistics Canada Open Licence <https://www.statcan.gc.ca/en/terms-conditions/open-licence>.

Version: 0.5.2
Depends: R (≥ 4.2)
Imports: dplyr (≥ 1.1.0), readr, stringr, rlang, utils, tibble, rvest, httr, purrr, DBI, duckdb (≥ 1.5.2), duckplyr (≥ 1.2.1), dbplyr, haven (≥ 2.5.0), zip
Suggests: rmarkdown, knitr, scales, ggplot2, testthat (≥ 3.0.0), withr, microbenchmark, DiagrammeR, DiagrammeRsvg, rsvg, pdftools, tidyr
Published: 2026-07-03
DOI: 10.32614/CRAN.package.canpumf (may not be active yet)
Author: Jens von Bergmann [aut, cre]
Maintainer: Jens von Bergmann <jens at mountainmath.ca>
BugReports: https://github.com/mountainMath/canpumf/issues
License: MIT + file LICENSE
URL: https://github.com/mountainMath/canpumf, https://mountainmath.github.io/canpumf/
NeedsCompilation: no
Language: en-CA
Materials: README, NEWS
CRAN checks: canpumf results

Documentation:

Reference manual: canpumf.html , canpumf.pdf
Vignettes: Census (source, R code)
LFS (source, R code)
Bootstrap weights (source, R code)
Onboarding a new PUMF (source, R code)
canpumf Pipeline Architecture (source, R code)
Working with multi-module PUMF surveys (source, R code)
Working with canpumf (source, R code)

Downloads:

Package source: canpumf_0.5.2.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): canpumf_0.5.2.tgz, r-oldrel (arm64): canpumf_0.5.2.tgz, r-release (x86_64): not available, r-oldrel (x86_64): canpumf_0.5.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=canpumf to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.