Skip to contents

Vectorised over string

Usage

emoji_count(string)

Arguments

string

Input vector

Value

An integer vector

Examples

string <- paste(c(letters[1:4], emoji_name[1:6]), collapse = " ")

emoji_count(string)
#> [1] 6

emoji_count(emoji_name[1:6])
#> [1] 1 1 1 1 1 1