emoji_detect {emoji}R Documentation

Detect the presence or absence of emojis in a string

Description

Vectorised over string

Usage

emoji_detect(string, negate = FALSE)

Arguments

string

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

negate

If TRUE, inverts the resulting boolean vector.

Value

A logical vector

See Also

stringr::str_detect()

Examples

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


[Package emoji version 16.0.0 Index]