powered by
Remove punctuation marks from a text document.
# S3 method for character removePunctuation(x, preserve_intra_word_dashes = FALSE) # S3 method for PlainTextDocument removePunctuation(x, …)
A character or text document.
a logical specifying whether intra-word dashes should be kept.
passed over argument preserve_intra_word_dashes.
preserve_intra_word_dashes
The character or text document x without punctuation marks (besides intra-word dashes if preserve_intra_word_dashes is set).
x
getTransformations to list available transformation (mapping) functions.
getTransformations
regex shows the class [:punct:] of punctuation characters.
regex
[:punct:]
# NOT RUN { data("crude") crude[[14]] removePunctuation(crude[[14]]) removePunctuation(crude[[14]], preserve_intra_word_dashes = TRUE) # }
Run the code above in your browser using DataLab