merge_files: Merge all files in a specified path

Description Usage Arguments

View source: R/merge_files.r

Description

This function allows you to merge all the files in a specified folder. It handles removing the extra header lines, if necessary. It also adds the file name as an extra variable, if this is necessary.

Usage

1
2
merge_files(path = getwd(), pattern = "*", type = "csv", FNvar = "",
  col_types = cols(.default = col_character()), ...)

Arguments

path

Defaults to the current working directory using getwd()

pattern

The pattern used to filter the files prior to the merge

type

The type of merge. Possible options are csv, fixed, other

FNvar

The name of the variable which will contain the filename. Will only add filename if this parameter has a variable name.


hcc-donder/commcoll documentation built on May 29, 2019, 9:17 a.m.