getMode: Find the modal value in a vector

View source: R/General_Functions.R

getModeR Documentation

Find the modal value in a vector

Description

Find the modal value in a vector

Usage

getMode(x)

Arguments

x

A vector of values.

Value

The modal value in x.

Examples

x <- c(1,2,1,2,4,5,7,8,4,2,3,4,4,4)
getMode(x)

allisonglider/seabiRds documentation built on Feb. 14, 2025, 7:37 a.m.