.getmode {eq5dsuite}R Documentation

Get the mode of a vector.

Description

This function calculates the mode of a numeric or character vector. If there are multiple modes, the first one is returned. The code is taken from an R help page.

Usage

.getmode(v)

Arguments

v

A numeric or character vector.

Value

The mode of 'v'.

Examples

.getmode(c(1, 2, 3, 3))
.getmode(c("a", "b", "b", "c"))

[Package eq5dsuite version 1.0.0 Index]