Description Usage Arguments Value Author(s) Examples
Function attack
is used to calculate lower and upper bounds for a given
sdcProblem (stored as object of class sdcProblem-class
).
For all calculations the current suppression pattern is used when calculating solutions of the
attacker's problem.
1 |
object |
an object of class |
verbose |
a logical vector specifying if output should be verbose (TRUE) or not (FALSE) |
a data.frame with column 'index' holding indices of primary suppressed cells and columns 'bounds_min' and 'bounds_max' featuring calculated lower and upper bounds for each cell. Column 'protected' shows if a given cell is accordingly protected (TRUE) or not (FALSE).
Bernhard Meindl bernhard.meindl@statistik.gv.at
1 2 3 4 5 6 7 8 9 | # load problem (as it was created after performing primary suppression
# in the example of \code{\link{primarySuppression}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problemWithSupps.RData", sep="")
problem <- get(load(fn))
# calculate current lower|upper bounds given current suppression pattern
# (in this case consisting of primary suppressions only)
attack(problem, verbose=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.