Learn R Programming

arabicStemR (version 1.3)

removeEnglishNumbers: Remove English numbers

Description

Removes Arabic numerals from a string.

Usage

removeEnglishNumbers(texts)

Value

removeEnglishNumbers returns a string with English numerals removed.

Arguments

texts

A string from which English numerals should be removed.

Author

Rich Nielsen

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