makeSlice {externalVector}R Documentation

Create a new object of class "sliceIndex"

Description

Create a new object of class "sliceIndex"

Usage

makeSlice(start = 1, length.slice = 1, stride = 1)

Arguments

start Start of the index.
length.slice Length of the index.
stride Difference between consecutive elements of the index.

Value

An object of class "sliceIndex".

See Also

sliceIndex-class

Examples

x <- makeSlice(0, 4, 2)
as(x, "positiveIndex")

[Package externalVector version 1.0.14 Index]