list_csv {tor} | R Documentation |
Import multiple common files from a directory into a list.
Description
These functions wrap common use-cases of list_any()
.
Usage
list_csv(
path = ".",
regexp = "[.]csv$",
ignore.case = TRUE,
invert = FALSE,
...
)
list_tsv(
path = ".",
regexp = "[.]tsv$",
ignore.case = TRUE,
invert = FALSE,
...
)
list_rds(path = ".", regexp = "[.]rds$", ignore.case = TRUE, invert = FALSE)
list_rdata(
path = ".",
regexp = "[.]rdata$|[.]rda$",
ignore.case = TRUE,
invert = FALSE
)
Arguments
path |
A character vector of one path. Defaults to the working directory. |
regexp |
A regular expression (e.g. |
ignore.case |
if |
invert |
If |
... |
Arguments passed to |
Value
A list.
See Also
Other functions to import files into a list:
list_any()
Other functions to import files of common formats:
load_csv()
Examples
(rds <- tor_example("rds"))
dir(rds)
list_rds(rds)
(tsv <- tor_example("tsv"))
dir(tsv)
list_tsv(tsv)
(mixed <- tor_example("mixed"))
dir(mixed)
list_rdata(mixed)
list_csv(mixed)
list_rdata(mixed, regexp = "[.]RData", ignore.case = FALSE)
[Package tor version 1.1.3 Index]