Learn R Programming

textclean (version 0.3.0)

replace_white: Remove Escaped Characters

Description

Pre-process data to replace one or more white space character with a single space.

Usage

replace_white(x, ...)

Arguments

x
The character vector.
...
ignored.

Value

Returns a vector of character strings with escaped characters removed.

Examples

Run this code
x <- "I go \r
    to   the \tnext line"
x
replace_white(x)

Run the code above in your browser using DataLab