Learn R Programming

BayesCPclust (version 0.1.0)

Mode: Compute the mode of a numerical vector

Description

Compute the mode of a numerical vector

Usage

Mode(x)

Value

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

Arguments

x

A vector with numbers

Examples

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

Run the code above in your browser using DataLab