Learn R Programming

arabicStemR (version 1.3)

removePunctuation: Remove punctuation.

Description

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

Usage

removePunctuation(texts)

Value

Returns a string with punctuation removed.

Arguments

texts

A string from which punctuation should be removed.

Author

Rich Nielsen

Examples

Run this code
## Create string with Arabic characters and punctuation

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

## Remove punctuation

removePunctuation(x)  

Run the code above in your browser using DataLab