dir_apply: dir_apply: lapply kind of behaviour on files of a directory

Description Usage Arguments Value

Description

lapply kind of behaviour on files of a directory

Usage

1
dir_apply(directory, fun = "read.csv", extensions = c("csv"), ...)

Arguments

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

Value

A list with names same as the filenames in the directory


talegari/sidekicks documentation built on May 30, 2019, 8:40 a.m.