bracket: subsetting

Description Usage Arguments Value Communication Examples

Description

Subsetting via `[` for shaq objects.

Usage

1
2
3
4
5
## S4 method for signature 'shaq'
x[i, j]

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

1
2
3
4
5
6
7
8
9
## Not run: 
library(kazaam)
x = ranshaq(runif, 10, 3)
y = x[, -1]
y

finalize()

## End(Not run)

kazaam documentation built on May 2, 2019, 8:55 a.m.