Learn R Programming

tm (version 0.5-3)

removePunctuation: Remove Punctuation Marks from a Text Document

Description

Remove all punctuation marks from a text document.

Usage

## S3 method for class 'PlainTextDocument':
removePunctuation(x)

Arguments

x
A text document.

Value

  • The text document with any punctuation marks in it removed.

See Also

getTransformations to list available transformation (mapping) functions.

Examples

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

Run the code above in your browser using DataLab