sdcTable (version 0.20.5)

protectTable: protecting sdcProblem-class objects

Description

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 ....

Usage

protectTable(object, method, ...)

Arguments

object
a sdcProblem-class object that has created using makeProblem and has been modified by primarySu
method
a character vector of length 1 specifying the algorithm that should be used to protect the primary sensitive table cells. Allowed values are:
  • OPT: protect the complete problem at once using a cut and branch algorithm. The optimal algo
...
parameters used in the protection algorithm that has been selected. Parameters that can be changed are:
  • general parameters include:
    • verbose: logical vector of length 1 defining if verbose output should be produced. Parameter

Value

Examples

Run this code
# 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))

# protect the table using the 'HITAS' algorithm with verbose output
protectedData <- protectTable(problem, method='HITAS', verbose=TRUE, useC=TRUE)

# showing a summary
summary(protectedData)

# looking at the final table with result suppression pattern
print(getInfo(protectedData, type='finalData'))

Run the code above in your browser using DataLab