mode_data.frame: Calculate mode of data frame

View source: R/mode_.R

mode_data.frameR Documentation

Calculate mode of data frame

Description

Calculate the mode frequency for each column of the data frame.

Usage

mode_data.frame(data)

Arguments

data

a data frame.

Details

The result is in the form of a data frame that returns answers in the form of column name, mode, and frequency. More than one answer may be returned for a column as the mode may not be uniquely obtained.

Examples

mode_data.frame(iris)

indenkun/infun documentation built on April 17, 2025, 2:52 p.m.