Description Usage Arguments Value Note Author(s) Examples
Function cellInfo
is used to query information for a single table cell
for objects of class safeObj-class
.
1 |
object |
an object of class |
characteristics |
a character vector specifying characteristics of the table cell that should be identified for each dimensional variable defining the table |
varNames |
a character vector specifying variable names of dimensional variables defining the tables |
verbose |
logical vector of length 1 defining verbosity, defaults to 'FALSE' |
a list containing the following calculated information
cellID
: numeric vector of length 1 specifying the index of the cell within the final result dataset
data
: a data.frame containing a single row with the index of the table cell of interest
primSupp
: logical vector of length 1 that is 'TRUE' if the cell is a primary sensitive cell and 'FALSE' otherwise
secondSupp
: logical vector of length 1 that is 'TRUE' if the cell is a secondary suppressed cell and 'FALSE' otherwise
Important: the i
-th element of argument characteristics
is uses as the desired characteristic for the dimensional variable specified at the i
-th position of argument varNames
!
Bernhard Meindl bernhard.meindl@statistik.gv.at
1 2 3 4 5 6 7 8 9 10 11 | # load protected data (as created in the example
# of \code{\link{protectTable}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/protectedData.RData", sep="")
protectedData <- get(load(fn))
characteristics <- c('male', 'D')
varNames <- c('gender', 'region')
info <- cellInfo(protectedData, characteristics, varNames, verbose=FALSE)
# show the info about this cell
str(info)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.