View source: R/limpiar_wrap_strings.R
limpiar_wrap | R Documentation |
Useful for pre-processing a dataset in which you need to read many documents, or scan over a lot of documents, e.g. when rendering an interactive scatter plot and using plotly's hover, or when using DT::datatable(escape = FALSE)
.
limpiar_wrap(
data,
text_var = mention_content,
n = 15,
newline_char = "<br><br>"
)
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 |
n |
number of words |
newline_char |
the specific delimiter to wrap the texts with |
Data Frame with text variable edited in place
limpiar_examples %>% limpiar_wrap(mention_content, n = 5, newline_char = "<br>")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.