Skip to contents

This function takes a vector and finds the mode (most frequent value)

Usage

find_mode(x)

Arguments

x

A vector

Value

The mode of the vector

Examples

find_mode(c(1,2,2,2,3,4,4))
#> [1] 2
# 2