stripWhitespace

0th

Percentile

Strip Whitespace from a Text Document

Strip extra whitespace from a text document. Multiple whitespace characters are collapsed to a single blank.

Usage
"stripWhitespace"(x, ...)
Arguments
x
A text document.
...
Not used.
Value

The text document with multiple whitespace characters collapsed to a single blank.

See Also

getTransformations to list available transformation (mapping) functions.

Aliases
  • stripWhitespace
  • stripWhitespace.PlainTextDocument
Examples
data("crude")
crude[[1]]
stripWhitespace(crude[[1]])
Documentation reproduced from package tm, version 0.6-2, License: GPL-3

Community examples

Looks like there are no examples yet.