remove.samples,RnBSet-method {RnBeads} | R Documentation |
Removes the specified samples from the dataset.
## S4 method for signature 'RnBSet' remove.samples(object, samplelist) ## S4 method for signature 'RnBeadSet' remove.samples(object, samplelist) ## S4 method for signature 'RnBeadRawSet' remove.samples(object, samplelist)
object |
Dataset of interest. |
samplelist |
List of samples to be removed in the form of a |
The modified dataset.
remove.sites
for removing sites or probes from a methylation dataset
library(RnBeads.hg19) data(small.example.object) samples(rnb.set.example) ## remove 3 random samples s2r<-sample.int(length(samples(rnb.set.example)), 3) rnb.set.f<-remove.samples(rnb.set.example, s2r) samples(rnb.set.f)