ezr.combine_files: Title Concatenate Mutliple CSVs or Pipe txts into same...

Description Usage Arguments Value

Description

Title Concatenate Mutliple CSVs or Pipe txts into same dataframe

Usage

1
2
3
ezr.combine_files(directory = getwd(), pattern = "*.csv",
  keep_label_file_name_origin = FALSE, type = "csv",
  max_guess = 5000)

Arguments

directory

Default directory is working directory. This is where all your files are.

pattern

What is the pattern of the files that you want to load? Ideally only these files are in the folders. This makes it easy to match with. Enter *.csv for all csvs or *.txt for all pipe delimited txt

keep_label_file_name_origin

Default is FALSE. This preserves the file name as a column in the file so you can know where it came from

type

default is 'csv' (lowercase). Other valid value is 'txt'. Will assume txt is a pipe delimited file.

max_guess

How many records to guess before reading. Default is 5000 which is larger than the default readr::read_xxx values. Set lower to increae speed.

Value

Returns a concatenated dataframe of all the files


jmp1989/easyr documentation built on May 20, 2019, 7:25 a.m.