removeDirectID: Remove certain variables from the data set inside a sdc...

View source: R/GUIfunctions.R

removeDirectIDR Documentation

Remove certain variables from the data set inside a sdc object.

Description

Delete variables without changing anything else in the sdcObject (writing NAs).

Usage

removeDirectID(obj, var)

Arguments

obj

object of class sdcMicroObj-class

var

name of the variable(s) to be remove

Value

the modified sdcMicroObj-class

Author(s)

Alexander Kowarik

Examples

## 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")

sdcTools/sdcMicro documentation built on March 15, 2024, 12:32 p.m.