getmode: Get the mode from a vector

View source: R/getmode.R

getmodeR Documentation

Get the mode from a vector

Description

Get the mode from a vector

Usage

getmode(v)

Arguments

v

A vector

Value

A vector containing the most frequent value in a vector. If there is a tie, the top values will be returned. R currently has no built-in function to get mode

Examples

hps <- mtcars$hp
getmode(hps)

Aypak/dbhelpers documentation built on Jan. 25, 2024, 9:03 p.m.