buggy_count {learningr} | R Documentation |
A buggy version of plyr's count function
Description
An old version of the plyr
package's count
function that fails when you pass it a factor
input.
Usage
buggy_count(df, vars = NULL, wt_var = NULL)
Arguments
df |
A data frame or an atomic input. |
vars |
Variables in |
wt_var |
Optional variable to weight by. See
|
Value
A data frame with label and freq columns.
Note
In case the “buggy” part of the name didn't give it away, this is not suitable for real world usage!
See Also
Examples
## Not run:
buggy_count(factor()) #oops!
## End(Not run)
[Package learningr version 0.29.1 Index]