Set the offset of an IndexList or a SignedIndexList object

`offset<-`(object, value)

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

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

myIndexList <- IndexList(list(1:5, 2:7, 3:8), offset=1L)
offset(myIndexList)
#> [1] 1
offset(myIndexList) <- 3
offset(myIndexList)
#> [1] 3