View source: R/limpiar_emojis.R
limpiar_remove_emojis | R Documentation |
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
limpiar_remove_emojis(data, text_var = mention_content)
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 Frame with the text variable cleaned in place
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.