Learn R Programming

arabicStemR (version 1.2)

cleanLatinChars:

Description

Cleans Latin characters from a string

Usage

cleanLatinChars(texts)

Arguments

texts
A string from which Latin characters should be removed.

Value

cleanLatinChars returns a string with Latin characters removed.

Examples

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

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

## Rewmove latin characters from string

cleanLatinChars(x)

Run the code above in your browser using DataLab