Description Usage Arguments Value See Also Examples
These functions wrap common use-cases of list_any()
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | 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
)
|
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 |
A list.
Other functions to import files into a list:
list_any()
Other functions to import files of common formats:
load_csv()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | (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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.