Learn R Programming

HTqPCR (version 1.26.0)

cbind: Combine qPCRset objects

Description

Functions for combining multiple qPCRset objects into one, by either adding columns (samples) or rows (features).

Usage

"cbind"(..., deparse.level = 1) "rbind"(..., deparse.level = 1)

Arguments

...
qPCRset objects that are to be combined.
deparse.level
not implemented currently. See cbind.

Value

Details

In some cases it might be desirable to merge multiple qPCRset objects, that have been read into R or processed individually. This can be done for either identical samples across multiple different cards (such as a 384 well plate), or if more samples have been run on cards with the same layout. cbind combines data assuming that all experiments have been carried out on identical cards, i.e. that featureNames, featureType, featurePos and featureClass is identical across all the qPCRset objects. rbind combines data assuming that the same samples have been analysed using different qPCR cards.

For both functions, the getCtHistory of all the individual objects will be added to the combined qPCRset.

See Also

cbind

Examples

Run this code
# Load some example data and split into multiple qPCRset objects
data(qPCRraw)
q1 <- qPCRraw[,1:2]
q2 <- qPCRraw[,2:4]
q3 <- qPCRraw[,5:6]
# Combine together by samples
q.samples <- cbind(q1,q3,q2)
n.wells(q.samples)
n.samples(q.samples)
# Combine as if the same samples had been run on multiple different cards
sampleNames(q3)	<- sampleNames(q1)
q.features <- rbind(q1,q3)
n.wells(q.features)
n.samples(q.features)

Run the code above in your browser using DataLab