stat_mode: Find the mode of a vector

Description Usage Arguments Value

View source: R/util.R

Description

Given a numeric vector returns the most frequently occurring value.

Usage

1
stat_mode(x, na.rm = FALSE)

Arguments

x

Numeric vector

na.rm

A logical value indicating whether 'NA' values should be stripped before the computation proceeds.

Value

A unit numeric vector representing the most frequent value in 'x'


lukerobert/luketools documentation built on Jan. 24, 2020, 2:15 a.m.