addPheno,RnBSet-method {RnBeads} | R Documentation |
Adds phenotypic or processing information to the sample annotation table of the given RnBSet
object.
## S4 method for signature 'RnBSet' addPheno(object, trait, header)
object |
|
trait |
Trait as a non-empty |
header |
Trait name given as a one-element |
The modified dataset as an object of type RnBSet
.
Fabian Mueller
library(RnBeads.hg19) data(small.example.object) logger.start(fname=NA) is.hiPSC <- pheno(rnb.set.example)[, "Sample_Group"]=="hiPSC" rnb.set.mod <- addPheno(rnb.set.example, is.hiPSC, "is_hiPSC") pheno(rnb.set.mod)