document: Easy Implementation to Read Multiple Documents within the...

Description Usage Arguments Value See Also Examples

Description

Easy implementation to read multiple documents within the folder with extension pattern.

Usage

1
document(path, name = NULL, pattern = "txt")

Arguments

path

Character Vectors representing the folders' path. One element of string denotes reading the document from one folder and a vector of characters denotes reading the documents from multiple folders simultaneously.

name

Character representing the name of the specific file to read. Default NULL. If NULL, function will read all the text files in that folder.

pattern

Character for the file extensions of the text files, like "txt", "csv", etc. Default "txt".

Value

Vectors of characters, each element in the vector contains the text of one file.

See Also

loadURLData wordEmbed

Examples

1
2
3
4
5
## Not run: 
path = "your_local_path"
docs = document(path, pattern = 'txt')

## End(Not run)

softmaxreg documentation built on May 2, 2019, 6:08 a.m.