getmode: Get the Statistical Mode

View source: R/getmode.r

getmodeR Documentation

Get the Statistical Mode

Description

Given a vector, return the mode (measure of central tendency). MATH 4753 Ass 1

Usage

getmode(v)

Arguments

v

a vector to calculate the statistical mode of.

Value

the mode of the give vector

Examples

getmode(cars$speed)
getmode(c(1, 2, 2, 3, 3, 3, 4, 4, 4, 4))


bbydino/ISSA-ROCK-AND-ROLL documentation built on April 27, 2022, 10:03 p.m.