collectData {MetaCyto}R Documentation

Collect and combine data from multiple csv files of the same format

Description

A function that collect and combine data from multiple csv files of the same format.

Usage

collectData(files, longform = TRUE)

Arguments

files

A vector containing the paths of csv files to be combined.

longform

True or False. Used to specify if the table in each csv file should be converted into long form before combining.

Value

A dataframe containing combined information from multiple csv files.

Examples

# find all the files we want to combine
fn=system.file("extdata","",package="MetaCyto")
fn=list.files(fn,pattern="cluster_stats_in_each_sample",full.names=TRUE)
# Comine the data
all_data = collectData(fn,longform=TRUE)

[Package MetaCyto version 1.14.0 Index]