calc.dimVar-method: modify 'dimVar'-objects depending on argument 'type'

calc.dimVarR Documentation

modify dimVar-objects depending on argument type

Description

modify dimVar-objects depending on argument type

Usage

calc.dimVar(object, type, input)

## S4 method for signature 'dimVar,character,character'
calc.dimVar(object, type, input)

Arguments

object

an object of class dimVar

type

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

  • hasDefaultCodes: calculates if a vector of codes (specified by argument input) corresponds to default codes in object

  • matchCodeOrig: obtain default|standard codes for a vector of original codes specified by argument input

  • matchCodeDefault: obtain original codes for a vector of default|standard codes specified by argument input

  • standardize: perform standardization of level-codes (temporarily removing duplicates,..)

  • requiredMinimalCodes: calculate a set of minimal codes that are required to calculate a specific (sub)total specified by argument input

input

a character vector

Value

information from object depending on type

  • a character vector if type matches 'matchCodeOrig', 'matchCodeDefault', 'standardize' or 'requiredMinimalCodes'

  • a logical vector of length 1 if type matches 'hasDefaultCodes' being TRUE if argument input are default codes and FALSE otherwise

Note

internal function

Author(s)

Bernhard Meindl bernhard.meindl@statistik.gv.at


sdcTable documentation built on Aug. 11, 2023, 9:06 a.m.