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

Description Usage Arguments Value

View source: R/dir_apply.R

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 Sept. 26, 2018, 4:18 p.m.