bin_mode: Calculate the mode of binned variable

View source: R/descriptives.R

bin_modeR Documentation

Calculate the mode of binned variable

Description

Calculate the mode of binned variable

Usage

bin_mode(var, n_bins, data)

Arguments

var

The variable

n_bins

The number of bins with which to bin up the variable

data

The data set

Value

The mid point of the bin that occurs with the highest frequency.

Examples

bin_mode(log_rt, n_bins = 5, data = behmercrump)

mark-andrews/isdsr-pkg documentation built on Sept. 13, 2022, 11:47 p.m.