Learn R Programming

arabicStemR (version 1.3)

removeNumbers: Remove English, Arabic, and Farsi numerals.

Description

Removes English, Arabic, and Farsi numerals from a string.

Usage

removeNumbers(texts)

Value

removeNumbers returns a string with English, Arabic, and Farsi numerals removed.

Arguments

texts

A string from which English, Arabic, and Farsi numerals should be removed.

Author

Rich Nielsen

Examples

Run this code

## Create string with Arabic characters and number

x <- '\u0627\u0647\u0644\u0627 \u0648\u0633\u0647\u0644\u0627 123 \u0661\u0662\u0663'

## Remove Numbers

removeNumbers(x) 

Run the code above in your browser using DataLab