get_mode: get_mode

View source: R/get_mode.R

get_modeR Documentation

get_mode

Description

Find the modal value for a vector

Usage

get_mode(x)

Arguments

x

is a vector

Details

Finds the most common value. If there is a tie, the value that is first alphabetically is taken.

Examples

get_mode(c("a", "a", "b"))
get_mode(c("a", "b", "b"))
get_mode(c("a", "a", "b", "b"))
get_mode(c("b", "b", "a", "a"))


familyforestresearchcenter/nwos documentation built on April 12, 2025, 11:54 a.m.