Learn R Programming

rtemis (version 1.4.3)

get_mode: Mode of a vector (Deprecated)

Description

get_mode() is deprecated. Use mode_value(), which takes the same arguments.

Usage

get_mode(x, na.rm = TRUE, getlast = TRUE, retain_class = TRUE)

Value

As mode_value().

Arguments

x

Vector, factor or integer: Input data.

na.rm

Logical: If TRUE, exclude NAs (using na.exclude(x)).

getlast

Logical: If TRUE, get the last value in case of ties.

retain_class

Logical: If TRUE, output is always same class as input.

Author

EDG

Examples

Run this code
suppressWarnings(get_mode(c(9, 3, 4, 4, 0, 2, 2, NA)))

Run the code above in your browser using DataLab