Vector helpers: convert emoji to/from names and shortcodes
Source:R/emoji-translate.R
as_emoji_name.RdSmall vector-level helpers for ad-hoc use. They do not take a data frame.
Details
as_emoji_name(x)maps emoji glyphs to their Unicode names.as_emoji_shortcode(x)maps emoji glyphs to their first shortcode.as_emoji(x)maps shortcodes/names to the emoji glyph (emojize).
All three resolve through emoji_key(), so qualified emoji (carrying
U+FE0F) and unqualified forms resolve identically. Unmatched inputs return
NA.
See also
emoji_to_text(), text_to_emoji() for the data-frame verbs.