dir_apply.Rdlapply kind of behaviour on files of a directory
dir_apply(directory, fun = "read.csv", extensions = c("csv"), ...)
| directory | (string) directory containing input files |
|---|---|
| fun | (function object or string) function whose input is the filename as a string and additional arguments if any. Defaults to "read.csv" Function name or the function name as the string may be given |
| extensions | (character vector) extension names. Defaults to "csv" |
| ... | additional arguments to fun, passed asis and unevaluated |
A list with names same as the filenames in the directory