Learn R Programming

drugprepr (version 0.0.4)

get_mode: Get the mode (most common value) of a vector

Description

Get the mode (most common value) of a vector

Usage

get_mode(v, na.rm = TRUE)

Arguments

v

a vector

na.rm

Logical. If TRUE (the default), find mode of non-NA values