bracket: Extract

bracketR Documentation

Extract

Description

Extract subsets of a float vector/matrix.

Usage

## S4 method for signature 'float32'
x[i, j, drop = TRUE]

## S4 replacement method for signature 'float32'
x[i, j, ...] <- value

Arguments

x

A float vector/matrix.

i, j, ...

The indices. Most combinations of integer/double/logical values will be treated the same as R does. One major difference is that NA values will not be tolerated.

drop

Logical. If TRUE, single column matrices will be treated as one-dimensional vectors.

value

The replacement value.

Value

A float vector/matrix.

Examples

## Not run: 
library(float)

s = flrunif(10, 3)
s[, -1]
s[c(1, 3, 5, 7), 1:2]

## End(Not run)


float documentation built on Feb. 16, 2023, 6:43 p.m.