Learn R Programming

datawizard (version 0.5.1)

distribution_mode: Compute mode for a statistical distribution

Description

Compute mode for a statistical distribution

Usage

distribution_mode(x)

Value

The value that appears most frequently in the provided data. The returned data structure will be the same as the entered one.

Arguments

x

An atomic vector, a list, or a data frame.

Examples

Run this code

distribution_mode(c(1, 2, 3, 3, 4, 5))
distribution_mode(c(1.5, 2.3, 3.7, 3.7, 4.0, 5))

Run the code above in your browser using DataLab