Helper function to return a set of file paths for use in other functions
Arguments
- data_path
character vector of either:
path(s) to the data file(s).
single path to directory containing data file(s). Currently only tabular
.csv
and.tsv
files are supported. Alternatively attributes returned usingnames()
can be extracted from r object, stored as.rds
files.
- ...
parameters passed to
list.files()
. For example, userecursive = TRUE
to list files in a folder recursively or usepattern
to filter files for patterns.