Skip to contents

It counts the frequency of the counts, gibing a initial frequency count of the number of occurrences of each group size.

Usage

count2(df, grp_var)

Arguments

df

A single data.frame

grp_var

A variable from a data.frame

Value

A data.frame

Examples


count2(mtcars,cyl)
#> Storing counts in `nn`, as `n` already present in input
#>  Use `name = "new_name"` to pick a new name.
#>    n nn
#> 1  7  1
#> 2 11  1
#> 3 14  1