powered by
An old version of the plyr package's count function that fails when you pass it a factor input.
plyr
count
factor
buggy_count(df, vars = NULL, wt_var = NULL)
A data frame or an atomic input.
Variables in df to count unique values of
df
Optional variable to weight by. See count.
A data frame with label and freq columns.
count and table
table
# NOT RUN { buggy_count(factor()) #oops! # }
Run the code above in your browser using DataLab