readAndMerge {Chicago} | R Documentation

## Read And Merge

### Description

A wrapper that calls readSample() on a number of files, then mergeSamples().

### Usage

    readAndMerge(files, cd, ...)

### Arguments

`files` | Character vector containing the locations of the files to read in.
`cd` | A `chicagoData` object, usually created with `setExperiment`.
`...` | Further arguments passed to `mergeSamples`.

### Value

An object of class `chicagoData`.

### Author(s)

Mikhail Spivakov, Jonathan Cairns, Paula Freire Pritchett

### See Also

`readSample`, `mergeSamples`

### Examples

    filesDir <- file.path(system.file("extdata", package="Chicago"), "unitTestData")
    files <- file.path(filesDir, dir(filesDir))
    print(files) ##we will read in and merge these files

    designDir <- file.path(system.file("extdata", package="Chicago"), "unitTestDesign")

    cd <- setExperiment(designDir=designDir)
    cd <- readAndMerge(files, cd)

[Package Chicago version 1.14.0 Index]