Skip to contents

Computation of the mode.

Usage

calc_mode(x)

Arguments

x

A vector

Value

A vector with the computed mode(s).

Examples


table(mtcars$cyl)
#> 
#>  4  6  8 
#> 11  7 14 

calc_mode(mtcars$cyl)
#> [1] 8