majority: Find the most common element of a vector

View source: R/distribution_functions.R

majorityR Documentation

Find the most common element of a vector

Description

Find the most common element of a vector

Usage

majority(x, na.rm = FALSE)

Arguments

x

A vector of numeric, logical, or character mode and it may be a factor as well.

na.rm

A logical value


DrylandEcology/rSW2utils documentation built on Dec. 9, 2023, 10:44 p.m.