extract_text: Module to extract text data from various file types

Description Usage Arguments Value Examples

View source: R/extract_text.R

Description

Takes in a file path and returns the text extracted from the document

Usage

1
extract_text(.filepath = NULL, .pdfimage = F, .filetype = NULL)

Arguments

.filepath

Character string containing the path to the file from which the text data is to be extracted

.pdfimage

Boolean denoting if the file is an image, for use when file_path == 'pdf'

.filetype

Character string to specify the file type

Value

text data

Examples

1
2
3
4
5
6
7
8
9
## Not run: 

oper655_readme <- "https://raw.githubusercontent.com/AFIT-R/oper655_fa2019/master/README.md"

Text = extract_text(.filepath = oper655_readme,
                    .filetype = "txt")


## End(Not run)

clawilso15/Text.Replace documentation built on Feb. 6, 2021, 5:45 a.m.