Skip to contents

Some emojis can be written in multiple different ways either as fully-qualified, minimally-qualified, or unqualified. emoji_fix() will take any emoji and return the fully-qualified version of that emoji.

Usage

emoji_fix(x)

Arguments

x

Characters, vector of emojis.

Value

vector of fully-qualified emojis

Details

This function is vectorized.

Examples

unqualified_ind <- which(emojis$qualified == "unqualified")[1:10]
unqualified <- emojis$emoji[unqualified_ind]

unqualified
#>  [1] "☺"   "☹"   "☠"   "❣"   "❤‍🔥" "❤‍🩹" "❤"   "🕳"   "👁‍🗨️"  "👁‍🗨" 
emoji_fix(unqualified)
#>  [1] "☺️"   "☹️"   "☠️"   "❣️"   "❤️‍🔥" "❤️‍🩹" "❤️"   "🕳️"   "👁️‍🗨️"  "👁️‍🗨️"