View source: R/aux_functions.r
extractManipData | R Documentation |
Extract the manipulated data from an object of class sdcMicroObj-class
extractManipData(
obj,
ignoreKeyVars = FALSE,
ignorePramVars = FALSE,
ignoreNumVars = FALSE,
ignoreGhostVars = FALSE,
ignoreStrataVar = FALSE,
randomizeRecords = "no"
)
obj |
object of class |
ignoreKeyVars |
If manipulated KeyVariables should be returned or the unchanged original variables |
ignorePramVars |
if manipulated PramVariables should be returned or the unchanged original variables |
ignoreNumVars |
if manipulated NumericVariables should be returned or the unchanged original variables |
ignoreGhostVars |
if manipulated Ghost (linked) Variables should be returned or the unchanged original variables |
ignoreStrataVar |
if manipulated StrataVariables should be returned or the unchanged original variables |
randomizeRecords |
(logical) specifies, if the output records should be randomized. The following options are possible:
|
a data.frame
containing the anonymized data set
Alexander Kowarik, Bernhard Meindl
## for objects of class sdcMicro:
data(testdata2)
sdc <- createSdcObj(testdata,
keyVars=c('urbrur','roof'),
numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- removeDirectID(sdc, var="age")
dataM <- extractManipData(sdc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.