replacePunct: Remove All Non-Word Punctiation

Description Usage Arguments Value Note

View source: R/spell-punct.R

Description

Remove All Non-Word Punctiation

Usage

1
2
punctReplace(txt)
replacePunct(txt) ## old wrapper - use punctReplace() for convention

Arguments

txt

a character or character vector

Value

A character or character vector without non-midword punctuation

Note

This function will not corrupt words containing punctuation, like "don't," but will ensure that there remain spaces between words that are separated by punctuation. It is imperfect but helpful.


mattgarber4/gsgWordcloud documentation built on Nov. 4, 2019, 6:17 p.m.