Description Usage Arguments Value See Also Examples
Reads multiple files from a directory.
1 2 |
.dir |
A string of the path to the directory. |
.pattern |
A string of the regular expression to use when searching for files. To include all files use ".*". |
.fun |
The function to use when reading each file. The first argument must be the name of the file. |
.recursive |
A flag indicating whether to recurse into subdirectories. |
.hidden |
A flag indicating whether to include hidden files. |
.silent |
A flag indicating whether error messages should be suppressed when trying to read a file. |
... |
Additional arguments passed to .fun |
A named list of the files.
1 2 3 | dir <- system.file("extdata", package = "filer")
objects <- read_files(dir)
lapply(objects, head)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.