R/rx.R
emoji_count.Rd
Vectorised over string
string
emoji_count(string)
Input vector
An integer vector
stringr::str_count()
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