most_common {campfin}R Documentation

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

most_common(iris$Species, n = 1)

[Package campfin version 1.0.9 Index]