Description Usage Arguments Details Value Author(s) Examples
Reduces a data.frame
into a frequency table with prespecified entries. Uses a modified version of the count function which also accepts weights.
Zero-entries can be included or excluded and the variables can be coerced into factors if necessary.
1 2 |
data |
The |
cols |
An ordered integer vector containing the indices of the colums to keep. |
freqvar |
Optional name of a frequency variable in |
keep.zero |
A logical indicating whether to include zero-cases in the output. |
allfactor |
A logical indicating whether to convert all variables into factor variables. Integer variables will be applied a fitting (non-lexicographic) level order. |
return.type |
The function is able to convert the output to a |
This function uses count as a workhorse and offers additional arguments keep.zero
and allfactor
. Both raw datasets, datasets with a frequency variable and tables can be handled.
A data.frame
including a "Freq"
variable.
Alexander Pilhoefer
Department for Computer Oriented Statistics and Data Analysis
University of Augsburg
Germany
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.