Package: masque 0.14.1.9000

masque: Structurally Faithful Development Surrogates for Tabular Data

Turns a confidential tabular dataset - a single table, a folder of files, or a multi-sheet workbook - into a structurally faithful synthetic clone suitable for pipeline development. Experimental-design allocation and the NA pattern are preserved exactly; categorical design, treatment, and covariate vocabularies can be reversibly aliased; outcome and numeric-covariate values are re-simulated via a Gaussian copula that preserves the global covariance structure. Columns shared across tables are aliased consistently so the synthetic tables still join. A private 'recipe' object round-trips a pipeline written against the synthetic clone onto the original data. Not a differential-privacy or anonymisation tool: outputs are development surrogates, not public-release-safe artefacts.

Authors:Max Moldovan [aut, cre]

masque_0.14.1.9000.tar.gz
masque_0.14.1.9000.zip(r-4.7-any)masque_0.14.1.9000.zip(r-4.6-any)masque_0.14.1.9000.zip(r-4.5-any)
masque_0.14.1.9000.tgz(r-4.6-any)masque_0.14.1.9000.tgz(r-4.5-any)
masque_0.14.1.9000.tar.gz(r-4.7-any)masque_0.14.1.9000.tar.gz(r-4.6-any)
masque_0.14.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
masque/json (API)

# Install 'masque' in R:
install.packages('masque', repos = c('https://max578.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/max578/masque/issues

Pkgdown/docs site:https://max578.github.io

On CRAN:

Conda:

4.41 score 23 exports 7 dependencies

Last updated from:099748966c (on main). Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK140
source / vignettesOK231
linux-releaseOK157
macos-releaseOK131
macos-oldrelOK107
windows-develOK150
windows-releaseOK140
windows-oldrelOK140
wasm-releaseOK125

Exports:apply_recipeaudit_maskclean_tableconform_tabledetect_designjitter_coordinatesmaskmask_setmasqueplot_design_summarypropose_rolesread_reciperead_setrecipereveal_mapsrole_optionsroles_validatesave_recipeset_rolesynthesise_geospatialsyntheticunmaskwrite_set

Dependencies:clidata.tabledigestlatticeMatrixS7withr

Getting started with masque
Why | What | Example | The one-call path | The masking plan: roles and actions | Editing the plan as code | A plan the package refuses | More than one table | Multi-environment structure | Figure: the multi-environment coverage plot | Results | Limits | What to read next | Reproduce

Last update: 2026-10-15
Started: 2026-05-16

Confidentiality and the threat model
Why | What | Example | Depth controls: hiding design structure | The conditional clone: preserving the treatment effect | Figure: the effect on each clone | What the copula carries: monotone, not non-monotone, association | The leakage audit, and a refused write | Multi-table sets | Geographic coordinates | Results | Limits | What to read next | Reproduce | References

Last update: 2026-10-07
Started: 2026-05-16

Recipe anatomy and the round-trip
Why | What | Example | What a recipe holds | Printing is redacted | The round-trip | Fail-closed translation | Saving the recipe | Multi-table bundles | Figure: the clone the analyst actually develops against | Results | Limits | What to read next | Reproduce

Last update: 2026-10-07
Started: 2026-05-16

What a conditional clone keeps of the design
Why | What | The pass rule | Example | The eight designs | Masking and measuring | The table | Figure: the F statistic per term, clone against original | Results | Limits | What to read next | Reproduce

Last update: 2026-10-07
Started: 2026-09-25

Readme and manuals

Help Manual

Help pageTopics
Translate a data frame into the synthetic namespaceapply_recipe
Audit a masque object for leakage and shareability risksaudit_mask
Tidy a dirty table's column names and category labels before maskingclean_table
Bring a cleaned table to an analysable format, reporting every assumptionconform_table
Detect environment scope and experimental-design structuredetect_design
Coarsen geographic coordinates by an on-land privacy jitterjitter_coordinates
Mask a tabular dataset into a structurally faithful development surrogatemask
Mask a multi-table set with cross-table-consistent aliasingmask_set
Mask a dataset end to end with one guided callmasque
Sanity-check visualisation for detected scope and designplot_design_summary
Propose role and action classifications for the columns of a data framepropose_roles
Read a masque recipe from diskread_recipe
Read a set of tables from a folder, an Excel workbook, or a listread_set
Extract the recipe from a masque objectrecipe
Reveal the level maps held inside a recipereveal_maps
List every role and action combination masque acceptsrole_options
Validate a roles tableroles_validate
Save a masque recipe to disksave_recipe
Set the role and action of one or more columns in a roles tableset_role
Re-anchor synthetic geospatial coordinates at plausible-but-fake locationssynthesise_geospatial
Extract the synthetic data from a masque objectsynthetic
Translate data from the synthetic namespace back to the originalunmask
Write a masked set to disk, mirroring the input formatwrite_set