Mode: Get the mode

Description Usage Arguments Value References

View source: R/hmi_smallfunctions.R

Description

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

Usage

1
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".


hmi documentation built on Oct. 23, 2020, 7:31 p.m.