nsites,RnBSet-method {RnBeads} | R Documentation

## nsites-methods

### Description

Returns the number of sites/regions for a given `RnBSet` object

### Usage

    ## S4 method for signature 'RnBSet'
    nsites(object, type = "sites")

### Arguments

`object` | `RnBSet` of interest.
`type` | `character` singleton. If this is set to `"sites"` (default), the number of sites is returned. Otherwise, this should be one of region types for for which the number of regions is returned.

### Value

`integer` stating the number of sites/regions. `NA` if the regions have not been summarized yet.

### See Also

`meth` Retrieving the matrix of methylation values

### Examples

    library(RnBeads.hg19)
    data(small.example.object)
    nsites(rnb.set.example)

[Package RnBeads version 1.12.1 Index]