emoji_subset: Keep strings containing an emoji, or find positions

View source: R/rx.R

emoji_subsetR Documentation

Keep strings containing an emoji, or find positions

Description

Keep strings containing an emoji, or find positions

Usage

emoji_subset(string, negate = FALSE)

emoji_which(string, negate = FALSE)

Arguments

string

input vector

negate

If TRUE, inverts the resulting boolean vector.

Value

A character vector

See Also

stringr::str_subset()

Examples

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

emoji_subset(string) == emoji_name[1:6]
emoji_subset(string, negate = TRUE)

emoji_which(string)
emoji_which(string, negate = TRUE)

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