powered by
Preprocess text for analysis
preprocess_text(text)
A preprocessed character string
A character string to be preprocessed
This function preprocesses the input text by converting to lowercase, removing punctuation and digits, and trimming whitespace.
text <- "Hello, World! This is an example text (with 123 numbers)." preprocess_text(text)
Run the code above in your browser using DataLab