most: Extract the mode

View source: R/NAME_most.R

mostR Documentation

Extract the mode

Description

most extracts the most frequent value (mfv; mode) of a numeric vector.

Usage

most(x)

Arguments

x

vector (numeric or integer)

Details

This is a convenience function to get the mode of a (numeric) vector.

Value

mode most frequent value

Examples


 most(c(1,1,2))
 most(mtcars$cyl)

sebastiansauer/prada documentation built on Jan. 17, 2024, 11:05 a.m.