emoji_subset | R Documentation |
Keep strings containing an emoji, or find positions
emoji_subset(string, negate = FALSE)
emoji_which(string, negate = FALSE)
string |
input vector |
negate |
If |
A character vector
stringr::str_subset()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.