View source: R/read_functions.R
read_folder | R Documentation |
read_folder()
is a wrapper around lapply
to read an entire folder of files
into a list. A NULL
is returned if the file is unable to be read.
read_folder(
folder,
read_function,
pattern = NULL,
.clean_file_names = TRUE,
.basename = FALSE,
.id = NULL,
.recursive = TRUE,
...
)
folder |
A folder path to read. |
read_function |
The function to use to read each file. |
pattern |
An optional regex. Only file names which match the regular expression will be read. |
.clean_file_names |
Logical to clean names into snake_case or not. |
.basename |
Logical to only keep the |
.id |
Character. Optionally add an id variable to each table, named as this value. |
.recursive |
Logical to recursively load the folder. |
... |
Arguments passed to |
A list of output from the read_function
. A NULL
is returned if the file is
unable to be read.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.