Learn R Programming

sdcTable (version 0.32.6)

get.dataObj: query dataObj-objects depending on argument type

Description

query dataObj-objects depending on argument type

Usage

get.dataObj(object, type)

# S4 method for dataObj,character get.dataObj(object, type)

Value

information from objects of class dataObj depending on argument type

  • a list if argument type matches 'rawData'

  • numeric vector if argument type matches 'dimVarInd', 'freqVarInd', 'numVarInd', 'weightVarInd' or 'sampWeightInd'

  • character vector if argument type matches 'numVarNames', 'freqVarName' or 'varName'

  • logical vector of length 1 if argument type matches 'isMicroData'

Arguments

object

an object of class dataObj

type

a character vector of length 1 defining what to calculate|return|modify. Allowed types are:

  • rawData: raw input data

  • dimVarInd: indices of dimensional variables

  • freqVarInd: index of frequency variable

  • numVarInd: indices of numerical variables

  • weightVarInd index of weight variable

  • sampWeightInd index of variable holding sampling weights

  • isMicroData does object consist of microdata?

  • numVarNames variable names of numerical variables

  • freqVarName variable name of frequency variable

  • varName variable names of dimensional variables

Author

Bernhard Meindl bernhard.meindl@statistik.gv.at