read_identical: Import a set of identically structured files.

Description Usage Arguments Value

View source: R/ImportHelper.R

Description

Given a set of files with identical row names and column names, this function reads all files and concatenate the requested columns from each.

Usage

1
2
read_identical(file.names, header.columns, data.columns,
  file.labels = basename(file.names), sep = "\t", header = TRUE, ...)

Arguments

file.names

The files to be read.

header.columns

Indices or names of row-identifying columns which should be repeated across all files. Those columns are added only once to the output, as the very first columns.

data.columns

Indices or names fo the columns containing unique data in each file. The values from each file will be added to the output.

file.labels

A vector of labels for the imported files. This must be of the of same length as file.names. The label is prefixed to column names in the resulting data frame.

Value

A data-frame with the concatenated information from all files.


ArnaudDroitLab/ef.utils documentation built on Aug. 13, 2019, 9:09 p.m.