View source: R/limpiar_emojis.R
limpiar_recode_emojis | R Documentation |
Main usage is for pre-processing the text variable as part of Deep Learning pipeline. The most important argument is whether or not to add the emoji tag, which will also print in snake case.
limpiar_recode_emojis(data, text_var = mention_content, with_emoji_tag = FALSE)
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 |
with_emoji_tag |
Whether to replace with snakecase linked words or not |
The Data Frame or Tibble object with most emojis cleaned from the text variable
emojis <- data.frame(
text = c("Hello π World",
"Family: π¨βπ©βπ§βπ¦",
"Coding π¨π½βπ»",
"Flags π³οΈβπ πΊπΈ",
"Weather βοΈ βοΈ βοΈ")
)
emojis
# Without tagging and combining:
limpiar_recode_emojis(emojis, text)
# With tagging and combining:
limpiar_recode_emojis(emojis, text, TRUE)
# 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.