mode: Arithmetic Mode

View source: R/example-fn.R

modeR Documentation

Arithmetic Mode

Description

Compute the arithmetic mode of a set of data. The mode is the most commonly appearing value.

Usage

mode(x)

Arguments

x

A vector or list.

Value

The mode of the input.

Examples

mode(c(1, 1, 2))
mode(list(1, 1, 2))
mode(c(1, NA, 1))

arisp99/testactionspkg documentation built on Nov. 14, 2024, 9:33 p.m.