Skip to contents

Differential privacy

Exact discrete Laplace noise for counts and histograms, the analytic Gaussian mechanism for means, and a privacy budget the releases are charged against.

dplapcnt()
Differentially-private count via the discrete Laplace mechanism
dplaphist()
Differentially-private histogram via the discrete Laplace mechanism
dpgmean()
Differentially-private mean via the analytic Gaussian mechanism
dpbudget()
A privacy budget that DP releases are charged against
dpspent()
What a privacy budget has spent

k-anonymity and l-diversity

Checks of a table’s quasi-identifier classes before release.

kanonvrf()
k-anonymity verification
ldivvrf()
l-diversity verification

Cell suppression

Primary and complementary suppression of small cells, audited for exact recovery from the margins.

cellsupp()
Cell suppression with complementary suppression and a recoverability audit

Bundled datasets and readers

Discover, load, verify and inspect the bundled open-data tables (Ontario correctional and use-of-force releases, SIU director’s reports, CIHI data tables, Chicago crime and others).

mdcat()
Catalog of the bundled datasets
mdload()
Load a bundled dataset by slug
mdpath()
Path of a bundled table's shipped file
mddict()
Data dictionary for a bundled dataset
mdsums()
SHA256 checksums of bundled rmoriedata files
mdverify()
Verify the bundled data store against its signed manifest
chiload()
Load Chicago crime or arrest data
chiclr()
Clear the cache of full Chicago datasets
cihitbls()
Catalogue of CIHI open data-table workbooks (with Wayback fallbacks)
cihiget()
Download a CIHI data table (live, with Wayback fallback)
siuload()
Load the Ontario SIU director's-report corpus

Sample data objects

Small documented data frames bundled for examples and tests (lazy-loaded via data()).

arrest_sample
Chicago arrests sample
complaint_sample
Chicago reported-crime sample ("complaints")

International datasets

Non-Canadian tables in the bundled store, reached by slug through mdload().

rmoriedata-victoria
Victorian crime statistics (Crime Statistics Agency Victoria)

Hosted tables

Curated tables served at data.rmorie.com, checked against the manifest’s SHA-256.

hostcat() hostload()
Curated datasets at data.rmorie.com

Core utilities and language model

Shared compiled primitives, and questions about the catalogue.

mdsha() mdmean()
Shared C-core helpers
mdask()
Ask a language model about the bundled datasets
mdllmconf()
Show or save the language-model settings