View source: R/test_problems.R
sdc_testproblem | R Documentation |
sdc_testproblem()
returns a sdc-problem instance with 2
hierarchies and
optionally with a single suppressed cell that is used in various examples
and tests.
sdc_testproblem(with_supps = FALSE)
with_supps |
if |
a problem instance
p1 <- sdc_testproblem(); p1
sdcProb2df(p1)
# a single protected cell
p2 <- sdc_testproblem(with_supps = TRUE); p2
sdcProb2df(p2)
# cell status differs in one cell
specs <- c(gender = "female", region = c("A"))
cell_info(p1, specs = specs)
cell_info(p2, specs = specs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.