offset-set: Set the offset of an 'IndexList' or a 'SignedIndexList'...

Description Usage Arguments Examples

Description

Set the offset of an IndexList or a SignedIndexList object

Usage

1
2
3
4
5
6
7
`offset<-`(object, value)

## S4 replacement method for signature 'IndexList,numeric'
offset(object) <- value

## S4 replacement method for signature 'SignedIndexList,numeric'
offset(object) <- value

Arguments

object

An IndexList or a SignedIndexList object

value

The value, that the offset of object is set too. If it isn't an integer, it's coerced into an integer.

Examples

1
2
3
4
myIndexList <- IndexList(list(1:5, 2:7, 3:8), offset=1L)
offset(myIndexList)
offset(myIndexList) <- 3
offset(myIndexList)

BioQC documentation built on Nov. 8, 2020, 7:16 p.m.