View source: R/limpiar_shorthands.R
limpiar_shorthands | R Documentation |
Replaces common Spanish shorthands and abbreviations with their longer form equivalents. Choose whether to link the replacements with snake case or not, with spaces_as_underscores. Useful primarily for normalising text ahead of sentiment classification.
limpiar_shorthands(
df,
text_var = mention_content,
spaces_as_underscores = FALSE
)
df |
Name of Data Frame or Tibble object |
text_var |
Name of text variable/character vector |
spaces_as_underscores |
Whether multi-word corrections e.g. 'te quiero mucho' should have spaces or underscores. Default = FALSE |
The text variable with shorthands replaced
limpiar_examples %>% dplyr::select(mention_content)
limpiar_examples %>% limpiar_shorthands() %>% dplyr::select(mention_content)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.