| reveal_maps | R Documentation |
Explicit, audited reveal: prints each original -> synthetic level map
held by the recipe. Use sparingly. Recipe maps are at least as
sensitive as the original data; printing them defeats the redaction
built into the print(), format(), str() and knitr::knit_print()
methods of recipes, recipe bundles, masque and masque_set objects.
saveRDS() and dput() write the maps by design.
reveal_maps(rec, table = NULL)
rec |
A |
table |
For a bundle, the names of the tables whose maps to reveal.
|
For each recipe it prints the column-name map (when names were
aliased), every level map as original -> alias, and the seed. The
alias labels follow the scheme described under alias in mask():
trt_NNN or <col>_trt_NNN for treatments, <col>_LNNN, <col>_DNNN,
<col>_INNN and <col>_TNNN for covariates, design columns, ids and
text, and <col>_KNNN for a key shared across the tables of a set.
rec, invisibly.
r <- propose_roles(iris)
r$role[r$col == "Sepal.Length"] <- "outcome"
r$role[r$col == "Species"] <- "covariate"
m <- mask(iris, r, mode = "collaborate", seed = 1)
rec <- recipe(m)
reveal_maps(rec)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.