Learn R Programming

arabicStemR (version 1.3)

cleanLatinChars: Clean Latin characters

Description

Cleans Latin characters from a string

Usage

cleanLatinChars(texts)

Value

cleanLatinChars returns a string with Latin characters removed.

Arguments

texts

A string from which Latin characters should be removed.

Author

Rich Nielsen

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