Learn R Programming

DataSum (version 0.1.0)

getmode: Get Mode of a Numeric Vector

Description

This function calculates the mode of a numeric vector.

Usage

getmode(data)

Value

The mode of the numeric vector.

Arguments

data

A numeric vector.

Examples

Run this code
getmode(c(1, 2, 2, 3, 4))

Run the code above in your browser using DataLab