Remove Modifiers from Emojis
Details
This function is vectorized. See emoji_modifiers for full list of modified emojis and their unmodified state.
Examples
waving_hands <- emojis$emoji[grepl("waving hand", emojis$name)]
waving_hands
#> [1] "π" "ππ»" "ππΌ" "ππ½" "ππΎ" "ππΏ"
emoji_modifier_remove(waving_hands)
#> [1] "π" "π" "π" "π" "π" "π"
set.seed(1234)
emoji_sample <- sample(emojis$emoji, 10)
emoji_sample
#> [1] "π€·π½ββ" "π©πΎβπ¦°" "ποΈββ" "ππΎββ" "β‘"
#> [6] "π§πΎβπ€βπ§π»" "π§πΌββββ‘" "π¨πΎββ€βπβπ¨πΏ" "π€Έπ»ββ" "ππΌββββ‘"
emoji_modifier_remove(emoji_sample)
#> [1] "π€·ββοΈ" "π©" "ποΈββ" "πββοΈ" "β‘" "π§βπ€βπ§" "π§ββοΈββ‘οΈ" "π"
#> [9] "π€ΈββοΈ" "πββοΈββ‘οΈ"