collectData: Collect and combine data from multiple csv files of the same...

Description Usage Arguments Value Examples

View source: R/collectData.R

Description

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

Usage

1
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

1
2
3
4
5
# 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)

hzc363/MetaCyto documentation built on July 27, 2020, 2:46 a.m.