Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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, ...)

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

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

tm

Text Mining Package

v0.7-8
GPL-3
Authors
Ingo Feinerer [aut, cre] (<https://orcid.org/0000-0001-7656-8338>), Kurt Hornik [aut] (<https://orcid.org/0000-0003-4198-9911>), Artifex Software, Inc. [ctb, cph] (pdf_info.ps taken from GPL Ghostscript)
Initial release
2020-11-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.