kazaam (version 0.1-0)

bracket: subsetting

Description

Subsetting via `[` for shaq objects.

Usage

# S4 method for shaq
[(x, i, j)

# S4 method for shaq [(x, i, j, ...) <- value

Arguments

x

A shaq.

i, j

Indices. NOTE currently only implemented for j values.

...

Ignored.

value

Replacement value(s) for the [<- method. This can either be an appropriately sized numeric value or a shaq. See the details section for more information.

Value

A shaq.

Communication

Each operation is completely local.

Examples

Run this code

library(kazaam)
x = ranshaq(runif, 10, 3)
y = x[, -1]
y

finalize()


Run the code above in your browser using DataLab