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

View source: R/rx.R

emoji_detectR 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)


emoji documentation built on Oct. 30, 2024, 9:28 a.m.