Mode {BayesCPclust}R 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)

[Package BayesCPclust version 0.1.0 Index]