Learn R Programming

softmaxreg (version 1.2)

document: Easy Implementation to Read Multiple Documents within the Folder

Description

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

Usage

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

Run this code
## Not run: 
# path = "your_local_path"
# docs = document(path, pattern = 'txt')
# ## End(Not run)

Run the code above in your browser using DataLab