OPCC: Open Postal Code Correspondence

An open, fully reproducible alternative to closed postal code conversion files, giving source-qualified many-to-many correspondence between Ontario postal codes and Statistics Canada 2021 census geographies. Every published artifact can be rebuilt step by step from public sources using the included build functions, so any user can reproduce and audit the conversion end to end. Lookup results retain allocation weights, evidence source, lineage, method, and vintage; unmatched postal codes remain explicit, and versioned release artifacts are checksum-verified before use. A built-in 'shiny' application provides a point-and-click interface for joining, mapping, and exporting results. Correspondences are derived from the Statistics Canada National Address Register <https://www150.statcan.gc.ca/n1/pub/46-26-0002/462600022022001-eng.htm>, the 2021 Census Geographic Attribute File <https://www12.statcan.gc.ca/census-recensement/2021/geo/aip-pia/attribute-attribs/index-eng.cfm>, and the GeoNames postal code export <https://download.geonames.org/export/zip/>. The package does not redistribute Canada Post, PCCF, or PCCF+ data and does not claim authoritative postal assignments.

Version: 1.0.1
Depends: R (≥ 4.1)
Imports: digest, jsonlite
Suggests: testthat (≥ 3.0.0), curl, dplyr, readr, readxl, rlang, sf, knitr, rmarkdown, withr, shiny (≥ 1.8.0), bslib (≥ 0.6.0), DT, leaflet, htmlwidgets, chromote, processx, httpuv
Published: 2026-09-22
DOI: 10.32614/CRAN.package.OPCC (may not be active yet)
Author: Lennon Li [aut, cre, cph]
Maintainer: Lennon Li <yeli at biostats.ai>
BugReports: https://github.com/lennon-li/OPCC/issues
License: MIT + file LICENSE
URL: https://github.com/lennon-li/OPCC
NeedsCompilation: no
Language: en-US
Materials: README, NEWS
CRAN checks: OPCC results

Documentation:

Reference manual: OPCC.html , OPCC.pdf
Vignettes: Using OPCC (source, R code)

Downloads:

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

Linking:

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

mirror server hosted at Truenetwork, Russian Federation.