RemNewlineHalfspace: Removes new line characters and fixes half-spaces

Description Usage Arguments Value Author(s) Examples

Description

Removes new line characters and fixes half-spaces in a string.

Usage

1

Arguments

texts

A string which its new line characters and half-spaces should be removed or fixed.

Value

RemNewlineHalfspace returns a string with new line characters and half-spaces removed or fixed.

Author(s)

Safshekan, Nielsen

Examples

1
2
3
4
5
6
7
# Create string with Persian string with new line characters and half-spaces 

x <- '\u062F\u0627\u0646\u0634\u06AF\u0627\u0647\u200C\u0647\u0627\u06CC
\u062A\u0647\u0631\u0627\u0646'

# Remove newline characters (eg.\n\r\t\f\v) and fix half-spaces
RemNewlineHalfspace(x) 

PersianStemmer documentation built on June 28, 2019, 5:03 p.m.