Learn R Programming

arabicStemR (version 1.2)

removeEnglishNumbers:

Description

Removes Arabic numerals from a string.

Usage

removeEnglishNumbers(texts)

Arguments

texts
A string from which English numerals should be removed.

Value

removeEnglishNumbers returns a string with English numerals removed.

Examples

Run this code

## Create string with Arabic characters and English number

x <- '\u0627\u0647\u0644\u0627 \u0648\u0633\u0647\u0644\u0627 123'

## Remove English Numbers

removeNumbers(x) 

Run the code above in your browser using DataLab