clean_punctuation: Tidy up punctuation

View source: R/functions.R

clean_punctuationR Documentation

Tidy up punctuation

Description

Standardizes punctuation in a string

Usage

clean_punctuation(x, punc, default)

Arguments

x

a string

punc

a list of punctuation marks

default

a punctuation mark that should be standard

Value

the input string with punctuation marks replaced by the default

Examples

clean_punctuation("a;b/c", c("/", ";"), ";")

elizagrames/redyarn documentation built on June 16, 2022, 2:54 p.m.