Learn R Programming

campfin (version 1.0.7)

most_common: Find most common values

Description

From a character vector, which values are most common?

Usage

most_common(x, n = 6)

Arguments

x

A vector.

n

Number of values to return.

Value

Sorted vector of n most common values.

Examples

Run this code
# NOT RUN {
most_common(iris$Species, n = 1)
# }

Run the code above in your browser using DataLab