mode: Get the mode of a variable

Description Usage Arguments Value Examples

View source: R/mode.R

Description

Get the mode of a variable

Usage

1
mode(x)

Arguments

x

= input variable

Value

mode

Examples

1
2
3
df <- data.frame(year = 1970:2019,
               catch = rnorm(50, 10, 2))
mode(df$catch)

ben-williams/funcr documentation built on Nov. 19, 2020, 8:06 a.m.