R/rx.R
emoji_locate.Rd
Vectorised over string
string
emoji_locate(string) emoji_locate_all(string)
Input vector
For emoji_locate an integer matrix, for emoji_locate_all a list of integer matrices
emoji_locate
emoji_locate_all
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 #>