Learn R Programming

RNAither (version 2.20.0)

joinDatasetFiles: Join dataset files

Description

Merges two or more dataset files into one, with one common header.

Usage

joinDatasetFiles(listOfFiles, nbOfLinesInHeader, newHead, outputFile)

Arguments

listOfFiles
a list of the names of the files to join
nbOfLinesInHeader
typically 3
newHead
the new header
outputFile
the name of the file to save the header and concatenated dataset in

See Also

generateDatasetFile, joinDatasets

Examples

Run this code
data(exampleHeader, package="RNAither")
data(exampleDataset, package="RNAither")
saveDataset(header, dataset, "save_testfile1.txt")

header[[1]] <- "external_experiment_name,Test screen"
header[[2]] <- "comments,contains twice Screen Nb 1"

joinDatasetFiles(list( "save_testfile1.txt", "save_testfile1.txt"), 3, header, 
"concatenated_testfile.txt")

Run the code above in your browser using DataLab