Learn R Programming

hmi (version 0.9.16)

Mode: Get the mode

Description

This function calculates the mode (most frequent observation) of a vector.

Usage

Mode(x)

Arguments

x

A vector

Value

The mode of x as a numeric value.

References

Adopted from stackoverflow.com/questions/2547402: "is there a built in function for finding the mode" from user "Ken Williams".