Learn R Programming

RnBeads (version 1.4.0)

remove.sites,RnBSet-method: remove.sites-methods

Description

Removes the specified probes from the dataset.

Usage

"remove.sites"(object, probelist, verbose = FALSE)
"remove.sites"(object, probelist, verbose = TRUE)
"remove.sites"(object, probelist, verbose = TRUE)

Arguments

object
Dataset of interest.
probelist
List of probes to be removed in the form of a logical, integer or character vector. If this parameter is logical, it is not recycled; its length must be equal to the number of probes in object. If it is integer or character, it must list only probes that exist in the dataset. Specifying probe indices larger than the number of probes, or non-existent probe identifiers results in an error.
verbose
if TRUE additional diagnostic output is generated

Value

The modified dataset.

See Also

remove.samples for removing samples from a methylation dataset

Examples

Run this code

library(RnBeads.hg19)
data(small.example.object)
print(rnb.set.example)
## remove 100 random sites
s2r<-sample.int(nrow(sites(rnb.set.example)), 100)
rnb.set.f<-remove.sites(rnb.set.example, s2r)
print(rnb.set.f)

Run the code above in your browser using DataLab