View source: R/sinkDirectory.R
sinkDirectory | R Documentation |
Import all .rds files in a directory.
sinkDirectory(
path,
string.keep = NULL,
string.exclude = NULL,
addMissingCol = FALSE,
fixed = FALSE,
trace = TRUE
)
path |
[character] path to the directory. |
string.keep |
[regexp] character string indicating files to import. |
string.exclude |
[regexp] character string indicating files to ignore. |
addMissingCol |
[logical] if a dataset does not have the same columns as
the other, the necessary empty columns are added to it with |
fixed |
[logical] If |
trace |
[logical] should a progress bar be displayed tracking how many files have been imported. |
The function first read the name of all the files in the directory.
Then if the argument string.keep
is not NULL
, it only retains the
files whose name contain string.keep
.
Then if the argument string.exclude
is not NULL
, it excludes the
files whose name contain string.exclude
.
Each file must contain a data.table
object with the same columns,
so that they can be combined.
A data.table
object.
Brice Ozenne
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.