[,LogMap | R Documentation |
Matrix-like Subsetting for Logical Maps
## S4 method for signature 'LogMap,missing,missing,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,character,character,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,character,missing,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,missing,character,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,numeric,missing,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,missing,numeric,ANY'
x[i, j, ..., drop = FALSE]
## S4 method for signature 'LogMap,numeric,numeric,ANY'
x[i, j, ..., drop = FALSE]
x |
A |
i , j |
Vectors of values ( |
... |
Arguments passed to other methods |
drop |
relevant for matrices and arrays. If |
i
is not reordable; passing a different order for i
will return a subset with rows in the same order as x
map <- LogMap(letters[1:10])
map[['obs']] <- c(1, 3, 7)
map[['entry']] <- c(2, 7, 10)
map[]
map[1:5, 2L]
map[c("b", "c", "f"), "obs"]
# Pass `drop = TRUE` to cast to `matrix`
map[1:3, , drop = TRUE]
# Note that `i` is non-reordable
rownames(map)[1:3]
map[c("b", "c", "a"), , drop = TRUE]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.