getmode: Mode

Description Usage Arguments Details Value Examples

View source: R/getmode.R

Description

This function will get the mode of a dataset.

Usage

1

Arguments

v

this is the vector of objects needing a mode

Details

R has no built in function for the mode of a vector so this function calculates the most often value in a vector.

Value

most often data value of a given vector v.

Examples

1
2
3
4
5
## Not run: 
mode <- getmode (c(4, 6, 6, 8))
mode holds the value of 6.

## End(Not run)

jRotondo19/MATH4753ROTONDO documentation built on Feb. 18, 2021, 12:06 a.m.