Description Usage Arguments Value Note See Also Examples
An old version of the plyr
package's count
function that fails when you pass it a factor
input.
1 | buggy_count(df, vars = NULL, wt_var = NULL)
|
df |
A data frame or an atomic input. |
vars |
Variables in |
wt_var |
Optional variable to weight by. See
|
A data frame with label and freq columns.
In case the “buggy” part of the name didn't give it away, this is not suitable for real world usage!
1 2 3 4 | ## Not run:
buggy_count(factor()) #oops!
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.