View source: R/codeBookSummary.R
| codeBookSummary | R Documentation |
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, ...)
## Default S3 method:
codeBookSummary(x, meta, ...)
## S3 method for class 'factor'
codeBookSummary(x, meta, ...)
## S3 method for class 'CategoricalVariable'
codeBookSummary(x, multiple = FALSE, meta = NULL, ...)
## S3 method for class 'MultipleResponseVariable'
codeBookSummary(x, meta = NULL, ...)
## S3 method for class 'CategoricalArrayVariable'
codeBookSummary(x, meta = NULL, ...)
## S3 method for class 'NumericVariable'
codeBookSummary(x, meta = NULL, ...)
## S3 method for class 'TextVariable'
codeBookSummary(x, meta = NULL, ...)
## S3 method for class 'DatetimeVariable'
codeBookSummary(x, meta = NULL, ...)
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? |
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.