Mode: Compute the mode of a numerical vector

View source: R/Mode.R

ModeR Documentation

Compute the mode of a numerical vector

Description

Compute the mode of a numerical vector

Usage

Mode(x)

Arguments

x

A vector with numbers

Value

'Mode' returns a value representing the most frequent numerical value in the vector 'x'

Examples

# Finding the mode of a vector of numbers
x <- c(1, 2, 2, 3, 5, 8, 10)
Mode(x)

BayesCPclust documentation built on April 4, 2025, 5:19 a.m.