varToFactor: Change the a keyVariable of an object of class...

Description Usage Arguments Value Examples

Description

Change the scale of a variable

Usage

1
2
3

Arguments

obj

object of class sdcMicroObj-class

var

name of the keyVariable to change

Value

the modified sdcMicroObj-class

Examples

1
2
3
4
5
6
## for objects of class sdcMicro:
data(testdata2)
sdc <- createSdcObj(testdata2,
  keyVars=c('urbrur','roof','walls','water','electcon','relat','sex'),
  numVars=c('expend','income','savings'), w='sampling_weight')
sdc <- varToFactor(sdc, var="urbrur")


Search within the sdcMicro package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.