ch.mergeDataInDir: Merge all the files in a directory

ch.mergeDataInDirR Documentation

Merge all the files in a directory

Description

This function merges all the files in a directory.

Usage

ch.mergeDataInDir(
  directoryName,
  outputFile,
  extension = ".dat",
  sep = "\t",
  header = T,
  ...
)

Arguments

directoryName

this is a string that specifies the name of the directory containing the datafiles.

outputFile

this is a string that specifies the name of the merged output file.

extension

this is a string that specifies extensions of the files to be merged. DEFAULT = ".dat"

sep

this is a string that specifies the how the columns in the files are separated. DEFAULT = tab

header

this is a boolean that specifies whether column headers are present. DEFAULT = T

Value

nothing (a file is written)

Examples

ch.mergeDataInDir ("data", "out.txt")

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.