emoji_locate: Locate the position of emojis in a string

View source: R/rx.R

emoji_locateR Documentation

Locate the position of emojis in a string

Description

Vectorised over string

Usage

emoji_locate(string)

emoji_locate_all(string)

Arguments

string

Input vector

Value

For emoji_locate an integer matrix, for emoji_locate_all a list of integer matrices

Examples

string <- paste(c(letters[1:4], emoji_name[1:6]), collapse = " ")

emoji_locate(string)

emoji_locate_all(string)

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