Description Usage Arguments Details Value Examples

Counts the frequency of each factor level.

1 | ```
factor_counts(vec)
``` |

`vec` |
vector of discrete values to be counted. |

Efficiently count the frequency of each level of a factor. The provided vector is re-factored so order of levels may change.

Named vector of counts for each level of the factor.

1 | ```
factor_counts(c("A", "B", "B", "C","C","C"))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.