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.