Learn R Programming

exams.forge (version 1.0.10)

mcval: Most Common Value

Description

Computes all modes (most common value).

Usage

mcval(x, ...)

# S3 method for default mcval(x, ...)

# S3 method for histogram mcval(x, exact = FALSE, ...)

compute_modes(x, ...)

mcv(x, ...)

Value

A vector of modes.

Arguments

x

data object

...

further arguments

exact

logical: either compute the exact mode or use class mids (default: FALSE)

Examples

Run this code
x <- sample(1:5, 15, replace=TRUE)
mcval(x)

Run the code above in your browser using DataLab