Description Usage Arguments Value Author(s) Examples
Function getInfo
is used to query information from objects of class
sdcProblem-class
, problemInstance-class
or safeObj-class
1 |
object |
a |
type |
a character vector of length 1 specifying the information which should be returned.
|
manipulated data dependend on arguments object
and type
Bernhard Meindl bernhard.meindl@statistik.gv.at
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # load problem (as it was created in the example
# of \code{\link{makeProblem}})
sp <- searchpaths()
fn <- paste(sp[grep("sdcTable", sp)], "/data/problem.RData", sep="")
problem <- get(load(fn))
# problem is an object of class \code{\link{sdcProblem-class}}
print(class(problem))
for (slot in c('lb','ub','LPL','SPL','UPL','sdcStatus',
'freq', 'strID', 'numVars', 'w')) {
cat('slot', slot,':\n')
print(getInfo(problem, type=slot))
}
# extracting information for objects of class \code{\link{safeObj-class}}
fn <- paste(sp[grep("sdcTable", sp)], "/data/protectedData.RData", sep="")
protectedData <- get(load(fn))
for (slot in c('finalData', 'nrNonDuplicatedCells', 'nrPrimSupps',
'nrSecondSupps', 'nrPublishableCells', 'suppMethod')) {
cat('slot', slot,':\n')
print(getInfo(protectedData, type=slot))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.