Skip to contents

Calculate the mode of categorical variable

Usage

calculate_mode(x)

Arguments

x

Character vector to calculate mode from.

Value

The value that occurred most often.

Examples

calculate_mode(washi_data$crop)
#> [1] "Vegetable"