Learn R Programming

campfin (version 1.0.11)

most_common: Find most common values

Description

From a character vector, which values are most common?

Usage

most_common(x, n = 6)

Value

Sorted vector of n most common values.

Arguments

x

A vector.

n

Number of values to return.

Examples

Run this code
most_common(iris$Species, n = 1)

Run the code above in your browser using DataLab