getmode: Get the mode from a vector

Description Usage Arguments Value Examples

View source: R/getmode.R

Description

Get the mode from a vector

Usage

1

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

1
2
hps <- mtcars$hp
getmode(hps)

Aypak/dbhelpers documentation built on Dec. 12, 2020, 10:35 p.m.