cellInfo: query information for a specific cell in 'safeObj-class'...

Description Usage Arguments Value Note Author(s) Examples

Description

Function cellInfo is used to query information for a single table cell for objects of class safeObj-class.

Usage

1
cellInfo(object, characteristics, varNames, verbose = FALSE)

Arguments

object

an object of class safeObj-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'

Value

a list containing the following calculated information

Note

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!

Author(s)

Bernhard Meindl bernhard.meindl@statistik.gv.at

Examples

 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)

bernhard-da/sdcTable documentation built on June 10, 2019, 4:54 a.m.