Skip to contents

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)
#>      start end
#> [1,]     9   9

emoji_locate_all(string)
#> [[1]]
#>      start end
#> [1,]     9   9
#> [2,]    11  11
#> [3,]    13  13
#> [4,]    15  15
#> [5,]    17  17
#> [6,]    19  19
#>