Skip to contents

Load the real CPADS CSV from this repository

Usage

morie_load_cpads_data(cpads_csv = .cpads_default_csv())

Arguments

cpads_csv

Path to the CPADS CSV.

Value

Canonicalized CPADS data frame.

Examples

# \donttest{
# Reads and canonicalises the CPADS PUMF CSV. The default CSV lives in
# a morie project tree; the CKAN-fetched PUMF works identically (see
# morie_load_dataset("ocp21")). The tryCatch guard lets the example
# render cleanly on machines without the CSV checked out locally.
tryCatch(morie_load_cpads_data(), error = function(e) message(conditionMessage(e)))
#> CPADS CSV not found: data/datasets/oc/CPADS/2021-2022/cpads-2021-2022-pumf2.csv
# }