dir_rbind: Rowise combine all the files in a directory

Description Usage Arguments

Description

This function combines the files in the given directory and returns as a data table or saves it to the out_put_file_path. Option 1 : Set header = T and no col_names. In this case the function will read the file and use the header of the first file in the directory. Option 2 : Set header = F and specify col_names manually. In this case the function will read the file and will use the given array as column names The assumption is that it does not have a header (default)

Usage

1
dir_rbind(dir_path, header = F, col_names = NULL, out_file_path = NULL)

Arguments

dir_path

Absolute path of the directory containing the files to be combined.

header

Boolean value of if the header needs to be considered

col_names

Character vector to replace the header with a custom column name.

Outputl

File path - absolute path. By default its null and can be omitted. Produces a tsv file.


nehiljain/genewiseR documentation built on May 23, 2019, 1:31 p.m.