Learn R Programming

rtemis (version 0.79)

getMode: Get the mode of a factor or integer

Description

Returns the mode of a factor or integer

Usage

getMode(x, na.rm = TRUE)

Arguments

x

Vector, factor or integer

na.rm

Logical: If TRUE, remove any NA values, if present, before finding mode. Default = TRUE

Value

The mode of x