bracket | R Documentation |
Extract subsets of a float vector/matrix.
## S4 method for signature 'float32' x[i, j, drop = TRUE] ## S4 replacement method for signature 'float32' x[i, j, ...] <- value
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 |
drop |
Logical. If TRUE, single column matrices will be treated as one-dimensional vectors. |
value |
The replacement value. |
A float vector/matrix.
## Not run: library(float) s = flrunif(10, 3) s[, -1] s[c(1, 3, 5, 7), 1:2] ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.