Mode: Find mode

View source: R/hcamode.R

ModeR Documentation

Find mode

Description

Determine the most frequent value

Usage

Mode(x, breaktie = T)

Arguments

x

input vector

breaktie

if TRUE (default), then tie is broken with the first value. If FALSE, all tied values are returned.

Value

most frequent value in x

Examples

x = c(1,1,1,2,2,2,3,4)
Mode(x) 
Mode(x,breaktie=F) 

DJFernandes/ezHCA documentation built on June 12, 2025, 12:01 p.m.