preprocess_text {conversim} | R Documentation |
Preprocess text for analysis
preprocess_text(text)
text |
A character string to be preprocessed |
This function preprocesses the input text by converting to lowercase, removing punctuation and digits, and trimming whitespace.
A preprocessed character string
text <- "Hello, World! This is an example text (with 123 numbers)."
preprocess_text(text)