R/helpers.R
calculate_mode.Rd
Calculate the mode of categorical variable
calculate_mode(x)
Character vector to calculate mode from.
The value that occurred most often.
calculate_mode(washi_data$crop) #> [1] "Vegetable"