Description Usage Arguments Value Note Author(s)
query safeObj
-objects depending on argument type
1 | get.safeObj(object, type, input)
|
object |
an object of class |
type |
a character vector of length 1 defining what to calculate|return|modify. Allowed types are: |
dimInfo: get infos on dimensional variables that formed the base of the protected data
elapsedTime: get elapsed time of the protection procedure
finalData: return final data object
nrNonDuplicatedCells: total number of cells that are duplicates
nrPrimSupps: total number of primary suppressed cells
nrSecondSupps: total number of secondary cell suppressions
nrPublishableCells: total number of cells that can be published
suppMethod: suppression method that has been used
cellInfo: extract information about a specific cell
cellID: calculate ID of a specific cell defined by level-codes and variable names
input |
a list depending on argument |
type matches 'dimInfo', 'elapsedTime', 'finalData', 'nrNonDuplicatedCells', 'nrPrimSupps', 'nrSecondSupps', 'nrPublishableCells' or 'suppMethod': input is not used (empty list)
type matches 'cellInfo' or 'cellID': input is a list of length 3
first element: character vector specifying variable names that need to exist in slot 'dimInfo' of object
second element: character vector specifying codes for each variable that define a specific table cell
third element: logical vector of length 1 with TRUE setting verbosity and FALSE to turn verbose output off
information from object
depending on type
an object of class dimInfo
(or NULL) if type matches 'dimInfo'
a numeric vector if type matches 'elapsedTime', 'nrNonDuplicatedCells', 'nrPrimSupps', 'nrSecondSupps', 'nrPublishableCells' or 'cellID'
a character vector if type matches 'suppMethod'
a data.frame if type matches 'finalData'
a list if type matches 'cellInfo' containing the following elements:
element 'cellID': numeric vector of length 1 specifying the index of the cell of interest
element 'data': row of slot 'finalData' with the row being defined by the calculated cellID
element 'primSupp': logical vector of length 1 being TRUE if cell is a primary suppressed cell
element 'secondSupps': logical vector of length 1 being TRUE if cell is a secondary suppressed cell
internal function
Bernhard Meindl bernhard.meindl@statistik.gv.at
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.