linesToParas: Lines to Paragraphs

Description Usage Arguments

Description

This function accepts a .txt file with Project Gutenberg format and removes inner-paragraph line breaks.

Usage

1
2
linesToParas(filename, write.out = TRUE, return.text = FALSE,
  scan.file = TRUE, local = TRUE)

Arguments

filename

File name as character string, i.e. "Crusoe", or (if scan.file = FALSE) a character vector of a text where each string is a line of text.

write.out

Logical. If TRUE (default), writes to file filename/filename-linesToParas.txt.

return.text

Logical. If TRUE (default = FALSE), returns the transformed text as a vector.

scan.file

Logical. If TRUE (default), scans in filename from filename/filename.txt, or (if local = FALSE) Google Drive filename.txt.

local

If FALSE (default), downloads from Google Drive and saves to folder filename/.


seanrsilver/novnet documentation built on June 19, 2019, 12:44 a.m.