Learn Data & AI Skills | 50% off
Get 50% off unlimited learning

arabicStemR (version 1.3)

removeNewlineChars: Remove new line characters

Description

Removes new line characters from a string.

Usage

removeNewlineChars(texts)

Value

removeNewlineChars returns a string with new line characters removed.

Arguments

texts

A string from which new line characters should be removed.

Author

Rich Nielsen

Examples

Run this code

## 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)  

Run the code above in your browser using DataLab