Learn R Programming

emoji (version 15.0)

emoji_locate: Locate the position of emojis in a string

Description

Vectorised over string

Usage

emoji_locate(string)

emoji_locate_all(string)

Value

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

Arguments

string

Input vector

Examples

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

emoji_locate(string)

emoji_locate_all(string)

Run the code above in your browser using DataLab