Learn R Programming

emoji (version 15.0)

emoji_count: Count the number of emojis in a string

Description

Vectorised over string

Usage

emoji_count(string)

Value

An integer vector

Arguments

string

Input vector

See Also

Examples

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

emoji_count(string)

emoji_count(emoji_name[1:6])

Run the code above in your browser using DataLab