Learn R Programming

emoji (version 15.0)

emoji_detect: Detect the presence or absence of emojis in a string

Description

Vectorised over string

Usage

emoji_detect(string, negate = FALSE)

Value

A logical vector

Arguments

string

Input vector. Either a character vector, or something coercible to one.

negate

If TRUE, return non-matching elements.

See Also

Examples

Run this code
string <- c(letters[1:4], emoji_name[1:6])
emoji_detect(string)

Run the code above in your browser using DataLab