sdcProb2df: sdcProb2df

Description Usage Arguments Value Examples

Description

returns a data.frame or data.table from an sdcProblem-class-object which contains the current state of the problem instance.

Usage

1
2
sdcProb2df(obj, addDups = TRUE, addNumVars = FALSE,
  dimCodes = "both")

Arguments

obj

an object of class sdcProblem-class from sdcTable

addDups

(logical), if TRUE, duplicated cells are included in the output

addNumVars

(logical), if TRUE, numerical variables (if defined in makeProblem) will be included in the output.

dimCodes

(character) allows to specify in which coding the dimensional variables should be returned. Possible choices are:

  • "both": both original and internally used, standardized codes are included in the output

  • "original": only original codes of dimensional variables are included in the output

  • "default": only internally used, standardized codes are included in the output

Value

a data.table containing information about all cells of the given sdc problem instance is returned.

Examples

1
## have a look at ?makeProblem

bernhard-da/sdcTable documentation built on June 10, 2019, 4:54 a.m.