Learn R Programming

stoRy (version 0.2.2)

text_formatting: Parse LTO text files

Description

Internal functions for parsing LTO raw text files.

remove_wordwrap() removes single newline characters (i.e. "\n") from string, but leaves double newlines (i.e. "\n\n").

Usage

remove_wordwrap(text)

Arguments

text

A character string.

Examples

Run this code
if (FALSE) {
# Remove word wrap from text blocks:
text <- "Themes related to people living on well beyond what
is considered to be a

normal human lifespan."
remove_wordwrap(text)
} 

Run the code above in your browser using DataLab