readTexts: Read text, rtf, or docx files into a dataframe and convert to...

Description Usage Arguments Examples

View source: R/readTexts.R

Description

readTexts() takes a directory as an input, loops through all files with a txt or a docx extension, reads each line into a dataframe with the document name as an identifier and optionally converts the file to tidy text format (one word per row).

Usage

1
readTexts(directory, tidy = TRUE, split = NULL)

Arguments

directory

The directory where files to be read are stored.

tidy

Whether text should be returned in tidy (one word per row) format.

Examples

1

smmurphy/convenience documentation built on Aug. 26, 2020, 8:46 p.m.