factor_counts: Fequency of factor levels

Description Usage Arguments Details Value Examples

View source: R/General.R

Description

Counts the frequency of each factor level.

Usage

1

Arguments

vec

vector of discrete values to be counted.

Details

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

Value

Named vector of counts for each level of the factor.

Examples

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

tallulandrews/TreeOfCells documentation built on April 26, 2020, 2:43 p.m.