Skip to contents

This function does not address ties in frequency.

Usage

str_n_freq(string = NULL, n = NULL, decreasing = TRUE)

Arguments

string

A character vector.

n

The number of values to return based on frequency of appearance. Defaults to NULL which returns all unique values from x.

decreasing

Passed to sort()