Skip to contents

return top n items with highest frequency

Usage

top_item(x, n = 1)

Arguments

x

character

n

top n

Value

character

Examples


top_item(c("a", "b", "c", "b"))
#> [1] "b"