float (version 0.2-3)

bracket: Extract

Description

Extract subsets of a float vector/matrix.

Usage

# S4 method for float32
[(x, i, j, drop = TRUE)

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

Run this code
# NOT RUN {
library(float)

s = flrunif(10, 3)
s[, -1]
s[c(1, 3, 5, 7), 1:2]
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace