tm (version 0.6-1)

stripWhitespace: Strip Whitespace from a Text Document

Description

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

Usage

## S3 method for class 'PlainTextDocument':
stripWhitespace(x, \dots)

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.

Examples

Run this code
data("crude")
crude[[1]]
stripWhitespace(crude[[1]])

Run the code above in your browser using DataCamp Workspace