Learn R Programming

regextable (version 0.1.1)

clean_text: Clean Text

Description

Cleans a character vector by converting text to lowercase, removing selected punctuation (plus signs, em dashes, exclamation points), normalizing commas, and removing whitespace.

Usage

clean_text(text)

Value

Cleaned character vector.

Arguments

text

Character vector to clean.

Examples

Run this code
clean_text(c("Hello  World!", "This is\tR"))

Run the code above in your browser using DataLab