setOps-immutable: Subset an immutable object, returning another immutable...

setOps-immutableR Documentation

Subset an immutable object, returning another immutable object.

Description

Subset an immutable object, returning another immutable object.

Usage

subset.immutable(x, ...)

## S3 method for class 'immutable'
x[...]

## S3 method for class 'immutable'
x[[...]]

## S3 method for class 'immutable'
x$...

Arguments

x

An R object inheriting from the "immutable" S3-class.

...

Catch any additional parameters. Lets objects with arbitrary dimensions be made immutable.

Value

An immutable subset of x.

Examples

immut_mat <- immutable(matrix(1:100, 10, 10))
immut_mat[1:5, 1:5]


bhklab/CoreGx documentation built on March 14, 2024, 3:04 a.m.