limpiar_remove_emojis: Completely Remove _Most_ Emojis from Text

View source: R/limpiar_emojis.R

limpiar_remove_emojisR Documentation

Completely Remove Most Emojis from Text

Description

uses a simple Regular Expression (RegEx) to clear most emojis from the text variable. Attempts to handle emojis which are joined together - like family emojis, and 'edited emojis' like those with skin tones etc. set

Usage

limpiar_remove_emojis(data, text_var = mention_content)

Arguments

data

Name of your Data Frame or Tibble object

text_var

Name of your text variable. Can be given as a 'string' or a symbol - should refer to a column inside data

Value

Data Frame with the text variable cleaned in place

Examples


 emojis <- data.frame(
 text = c("Hello πŸ‘‹ World",
  "Family: πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦",
  "Coding πŸ‘¨πŸ½β€πŸ’»",
  "Flags πŸ³οΈβ€πŸŒˆ πŸ‡ΊπŸ‡Έ",
  "Weather β˜€οΈ β›ˆοΈ ❄️")
)

emojis

# using limpiar_remove_emojis() to remove them entirely:
limpiar_remove_emojis(emojis, text)

jpcompartir/LimpiaR documentation built on Dec. 9, 2024, 9:43 p.m.