limpiar_spaces: Clean redundant spaces

View source: R/limpiar_spaces.R

limpiar_spacesR Documentation

Clean redundant spaces

Description

Remove excess spaces from the text variable.

Usage

limpiar_spaces(df, text_var = mention_content)

Arguments

df

Name of the Data Frame or Tibble object

text_var

Name of the text variable/character vector

Value

text variable/character vector with excess spaces removed

Examples

df <- data.frame(text_variable = "clean   the   spaces please")
limpiar_spaces(df, text_var = text_variable)

limpiar_examples %>% dplyr::select(mention_content)

limpiar_examples %>% limpiar_spaces() %>% dplyr::select(mention_content)

jpcompartir/LimpiaR documentation built on April 6, 2024, 5:22 a.m.