View source: R/eda_crosstable.R
eda_crosstable | R Documentation |
Calculates a frequency table for two survey items
eda_crosstable(data, items, rm.dk = FALSE, itemnames = NULL)
data |
a |
items |
survey items (in form of a vector) |
rm.dk |
a logical value indicating whether "Don't know" values (-8) should be stripped before the computation proceeds |
itemnames |
optional argument for specifying the survey items' names |
a table with relative frequencies (in percent)
## Not run: eda_crosstable(data = infert, items = c("education", "parity"), rm.dk = FALSE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.