removePunctuation: Remove punctuation.

View source: R/stemmer.R

removePunctuationR Documentation

Remove punctuation.

Description

Removes punctuation from a string, including some specialized Arabic characters.

Usage

removePunctuation(texts)

Arguments

texts

A string from which punctuation should be removed.

Value

Returns a string with punctuation removed.

Author(s)

Rich Nielsen

Examples

## Create string with Arabic characters and punctuation

x <- '\u0627\u0647\u0644\u0627 \u0648\u0633\u0647\u0644\u0627!!!?'

## Remove punctuation

removePunctuation(x)  


arabicStemR documentation built on July 18, 2022, 9:06 a.m.