mode: Mode Function

Description Usage Arguments Value Examples

View source: R/mode.R

Description

This function returns the mode for a given data frame.

Usage

1
mode(x, na.rm = FALSE)

Arguments

x

variable within data frame or a list of values.

na.rm

remove the NAs, default is FALSE.

Value

This function returns the mode for a variable within a data frame or a list of values.

Examples

1
2
3
data <- mtcars

mode(data$mpg)

burrelvannjr/vannstats documentation built on April 30, 2021, 2:01 p.m.