Package: masque 0.16.0

Max Moldovan

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.16.0.tar.gz
masque_0.16.0.zip(r-4.7-any)masque_0.16.0.zip(r-4.6-any)
masque_0.16.0.tar.gz(r-4.7-any)masque_0.16.0.tar.gz(r-4.6-any)
masque_0.16.0.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://cran.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:

3.30 score 25 exports 7 dependencies

Last updated from:f72ce32827. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK186
source / vignettesOK237
linux-releaseOK188
windows-develOK185
windows-releaseOK181
wasm-releaseOK110

Exports:apply_recipeaudit_maskclean_tableconform_tabledata_carddetect_designjitter_coordinatesmaskmask_setmasqueplot_design_summarypropose_rolesread_reciperead_setrecipereveal_mapsrole_optionsrolesroles_validatesave_recipeset_rolesynthesise_geospatialsyntheticunmaskwrite_set

Dependencies:clidata.tabledigestlatticeMatrixS7withr

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

Last update: 2026-11-18
Started: 2026-11-18

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 | Describing the clone: the data card | Multi-environment structure | Figure: the multi-environment coverage plot | Results | Limits | What to read next | Reproduce

Last update: 2026-11-18
Started: 2026-11-18

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-11-18
Started: 2026-11-18

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-11-18
Started: 2026-11-18

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
Write a data card for a masked clonedata_card
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
The role table of a masked cloneroles
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