removeNewlineChars: Remove new line characters

View source: R/stemmer.R

removeNewlineCharsR Documentation

Remove new line characters

Description

Removes new line characters from a string.

Usage

removeNewlineChars(texts)

Arguments

texts

A string from which new line characters should be removed.

Value

removeNewlineChars returns a string with new line characters removed.

Author(s)

Rich Nielsen

Examples


## Create string with Arabic characters 

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

## Remove newline characters (gets rid of \n\r\t\f\v)

removeNewlineChars(x)  

arabicStemR documentation built on July 18, 2022, 9:06 a.m.