Skip to contents

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, return non-matching elements.

Value

A logical vector

Examples

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