Learn R Programming

RnBeads (version 1.4.0)

nsites,RnBSet-method: nsites-methods

Description

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

Usage

"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

Run this code

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

Run the code above in your browser using DataLab