This group of functions creates a summarized data.frame that can be cnoverted into either a kable or manually glued into a latex.

codeBookSummary(x, meta, ...)

# S3 method for default
codeBookSummary(x, meta, ...)

# S3 method for factor
codeBookSummary(x, meta, ...)

# S3 method for CategoricalVariable
codeBookSummary(x, multiple = FALSE, meta = NULL, ...)

# S3 method for MultipleResponseVariable
codeBookSummary(x, meta = NULL, ...)

# S3 method for CategoricalArrayVariable
codeBookSummary(x, meta = NULL, ...)

# S3 method for NumericVariable
codeBookSummary(x, meta = NULL, ...)

# S3 method for TextVariable
codeBookSummary(x, meta = NULL, ...)

# S3 method for DatetimeVariable
codeBookSummary(x, meta = NULL, ...)

Arguments

x

A single variable from a crunch dataset

meta

A list containning question meta data

...

Additional arguments, unused.

multiple

Is this a MultipleResponse or CategoricalArray variable?

Methods (by class)

  • codeBookSummary(default): The default, throws out anything that does not match expected crunch variable classes

  • codeBookSummary(factor): Prepares a codeBookSummary data.frame for a factor

  • codeBookSummary(CategoricalVariable): Prepares a codeBookSummary data.frame for a CategoricalVariable

  • codeBookSummary(MultipleResponseVariable): Prepares a codeBookSummary data.frame for a MultipleResponseVariable

  • codeBookSummary(CategoricalArrayVariable): Prepares a codeBookSummary data.frame for a CategoricalArrayVariable

  • codeBookSummary(NumericVariable): Prepares a codeBookSummary data.frame for a NumericVariable

  • codeBookSummary(TextVariable): Prepares a codeBookSummary data.frame for a TextVariable

  • codeBookSummary(DatetimeVariable): Prepares a codeBookSummary data.frame for a DatetimeVaraible