protectTable | R Documentation |
Function protectTable()
is used to protect primary sensitive table cells
(that usually have been identified and set using
primarySuppression()
). The function protects primary
sensitive table cells according to the method that has been chosen and the
parameters that have been set. Additional parameters that are used to control
the protection algorithm are set using parameter ...
.
protectTable(object, method, ...)
object |
a sdcProblem object that has created using |
method |
a character vector of length 1 specifying the algorithm that should be used to protect the primary sensitive table cells. Allowed values are:
|
... |
parameters used in the protection algorithm that has been selected. Parameters that can be changed are:
|
The implemented methods may have bugs that yield in not-fully protected tables. Especially
the usage of "OPT"
, "HITAS"
and "HYPERCUBE"
in production is not
suggested as these methods may eventually be removed completely. In case you encounter any problems,
please report it or use Tau-Argus (https://research.cbs.nl/casc/tau.htm).
an safeObj object
Bernhard Meindl bernhard.meindl@statistik.gv.at
## Not run:
# load example-problem with with a single primary suppression
# (same as example from ?primarySuppression)
p <- sdc_testproblem(with_supps = TRUE)
# protect the table using the 'GAUSS' algorithm with verbose output
res1 <- protectTable(p, method = "GAUSS", verbose = TRUE)
res1
# protect the table using the 'HITAS' algorithm with verbose output
res2 <- protectTable(p, method = "HITAS", verbose = TRUE, useC = TRUE)
res2
# protect using the heuristic algorithm
res3 <- protectTable(p, method = "SIMPLEHEURISTIC")
res3
# protect using the old implmentation of the heuristic algorithm
# used in sdcTable versions <0.32
res4 <- protectTable(p, method = "SIMPLEHEURISTIC_OLD")
res4
# looking at the final table with result suppression pattern
print(getInfo(res1, type = "finalData"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.