mode: Mode Function

View source: R/mode.R

modeR Documentation

Mode Function

Description

This function returns the mode for a given data frame.

Usage

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


data <- mtcars

mode(data$mpg)

vannstats documentation built on April 15, 2023, 9:09 a.m.