replace_white: Remove Escaped Characters

Description Usage Arguments Value Examples

View source: R/replace_white.R

Description

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

Usage

1

Arguments

x

The character vector.

...

ignored.

Value

Returns a vector of character strings with escaped characters removed.

Examples

1
2
3
4
x <- "I go \r
    to   the \tnext line"
x
replace_white(x)

Example output

[1] "I go \r\n    to   the \tnext line"
[1] "I go to the next line"

textclean documentation built on May 2, 2019, 7:22 a.m.