dir_stack: dir_stack

Description Usage Arguments Value

Description

dir_stack

Usage

1
2
3
4
dir_stack(path = ".", pattern = "\\.csv$", file_paths = NULL,
  ind = NULL, recursive = FALSE, func = NULL,
  read_func = function(x) read.csv(x, stringsAsFactors = FALSE),
  verbose = FALSE, bind_rows = TRUE)

Arguments

path

Path to a directory.

pattern

Regular expression to match on file names.

file_paths

A vector of files paths. If supplied, path, pattern and recursive are ignored.

ind

Logical or numeric indices used to subset file_paths.

recursive

passed to list.files()

func

A function for processing object read in by read_func()

read_func

A function for reading in files specified in file_paths.

verbose

TRUE or FALSE. Default is FALSE.

bind_rows

logical

Value

A data.frame.


wkostelecki/wtils documentation built on May 29, 2019, 2:29 p.m.