set.sdcMicroObj | R Documentation |
modify sdcMicroObj-class
-objects depending on argument type
set.sdcMicroObj(object, type, input)
object |
a |
type |
a character vector of length 1 defining what to calculate|return|modify. Allowed types are listed below
and the slot with the corresponding name will be replaced by the content of
|
input |
a list depending on argument |
a sdcMicroObj-class
-object
sdc <- createSdcObj(testdata2,
keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'),
numVars=c('expend','income','savings'), w='sampling_weight')
ind_pram <- match(c("sex"), colnames(testdata2))
get.sdcMicroObj(sdc, type="pramVars")
sdc <- set.sdcMicroObj(sdc, type="pramVars", input=list(ind_pram))
get.sdcMicroObj(sdc, type="pramVars")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.