powered by
Keep strings containing an emoji, or find positions
emoji_subset(string, negate = FALSE)emoji_which(string, negate = FALSE)
emoji_which(string, negate = FALSE)
A character vector
input vector
If TRUE, return non-matching elements.
TRUE
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)
Run the code above in your browser using DataLab