remove.sites,RnBSet-method {RnBeads} | R Documentation

## remove.sites-methods

### Description

Removes the specified probes from the dataset.

### Usage

    ## S4 method for signature 'RnBSet'
    remove.sites(object, probelist, verbose = FALSE)

    ## S4 method for signature 'RnBeadSet'
    remove.sites(object, probelist, verbose = TRUE)

    ## S4 method for signature 'RnBeadRawSet'
    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

    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)

[Package RnBeads version 1.12.1 Index]