myMultipleMode: Mode

Description Usage Arguments Value Examples

View source: R/myMultipleMode.R

Description

This function allows you to calculate multiples mode if your data is multimodal.

Usage

1
myMultipleMode(values, multiple = FALSE)

Arguments

multiple

TRUE will retur multiple variables, FALSE will show only one of the modes. Defaults to FALSE.

x

R object

Value

A list with the mode of x and the times it was repeated.

Examples

1
2
3
myNumbers <- c(7,6,6,10,6,6,7,3,7,14,20,7)
myMultipleMode(myNumbers)
myMultipleMode(myNumbers, TRUE)

symeneses/RMode documentation built on May 29, 2019, 9:52 a.m.