Description Usage Arguments Value Author(s) See Also Examples
This function can be used to efficiently combine the frequencies of variables with the same possible values. The frequencies are collapsed into a table with the variable names as row names and the possible values as column (variable) names.
1 2 3 4 |
data |
The dataframe containing the variables. |
items |
The variable names. |
labels |
Labels can be provided which will be set as row names when provided. |
sortByMean |
Whether to sort the rows by mean value for each variable (only sensible if the possible values are numeric). |
The resulting dataframe, but with class 'multiVarFreq' prepended to allow pretty printing.
Gjalt-Jorn Peters
Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>
1 | multiVarFreq(mtcars, c('gear', 'carb'));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.