Description Usage Arguments Value Note Examples
This function reads in all files in a directory ending in .txt into R. The result is a character vector where each entry is a .txt file. The names of the resulting vector are derived from the names of the files.
1 |
directory |
A path to directory containing the files you want to read into R. |
... |
Other arguments to be passed to |
Returns a character vector where each entry corresponds to a document.
This function performs parallel computation by default. The default
behavior is to use all available cores according to detectCores.
However, this can be modified by passing the cpus argument when calling
this function.
1 2 3 4 | ## Not run:
my_text_vector <- Files2Vec("/path/to/my/data/")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.