stat_get_mode: Helper function to calculate the mode

View source: R/stat_get_mode.R

stat_get_modeR Documentation

Helper function to calculate the mode

Description

Get the mode of a numeric vector.

Usage

stat_get_mode(v)

Arguments

v

a numeric vector

Value

get the mode (the most frequent value)

Examples

v<- c(NA, 19, 4, 5, 7, 29, 19, 29, 13, 25, 19, 19)
stat_get_mode(v)

maxbre/rfunctions documentation built on Nov. 19, 2022, 5:46 p.m.