Skip to contents

Remove Modifiers from Emojis

Usage

emoji_modifier_remove(x)

Arguments

x

Characters, vector of emojis.

Value

character vector, single emojis will be replaced with un-modified if possible.

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] "πŸ€Έβ€β™‚οΈ"    "πŸƒβ€β™€οΈβ€βž‘οΈ"