stripWhitespace {tm}R Documentation

Strip Whitespace from a Text Document

Description

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

Usage

## S3 method for class 'PlainTextDocument'
stripWhitespace(x)

Arguments

x

A text document.

Value

The text document with multiple white space characters collapse to a single blank.

See Also

getTransformations to list available transformation (mapping) functions.

Examples

data("crude")
crude[[1]]
stripWhitespace(crude[[1]])

[Package tm version 0.5-10 Index]