Learn R Programming

textTools (version 0.1.0)

str_rm_punctuation: Remove and replace punctuation from strings.

Description

Remove and replace punctuation from strings.

Usage

str_rm_punctuation(x, replacement = "")

Arguments

x

A vector or string.

replacement,

A string to replace the punctuation with, defaults to "".

Value

x, with punctuation removed/replaced.

Examples

Run this code
# NOT RUN {
str_rm_punctuation(c("wait, is this is a test?", "Tests: . ! ?"))
# }

Run the code above in your browser using DataLab