removeDirectID {sdcMicro} | R Documentation |
Delete variables without changing anything else in the sdcObject (writing NAs).
removeDirectID(obj, var)
obj |
object of class |
var |
name of the variable(s) to be remove |
the modified sdcMicroObj-class
Alexander Kowarik
## 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")