Extract: Subscript operator for objects from several Methyl-IT classes

ExtractR Documentation

Subscript operator for objects from several Methyl-IT classes

Description

x[i] returns an object of the length as i preserving the class from the original object x. The following Methyl-IT classes are considered: 'InfDiv','pDMP', 'glmDataSet', and 'RangedGlmDataSet'.

Usage

## S3 method for class 'InfDiv'
x[i]

## S3 method for class 'pDMP'
x[i]

## S3 method for class 'glmDataSet'
x[i, j, ...]

## S3 method for class 'RangedGlmDataSet'
x[i, j, ...]

Arguments

x

A list-like or vector-like object

i

Index specifying elements to Extract or replace. Index can be a numeric or a character vector. See ?base::Extract for a description of these arguments.

Value

Same as in ?base::Extract, but preserving the class from the original object x.

See Also

base::Extract


genomaths/MethylIT documentation built on Feb. 3, 2024, 1:24 a.m.