[,VirtualArray,ANY,ANY-method | R Documentation |
Single bracket '['
refers to indices and names within the 'VirtualArray
'-class object. Use double brackets to extract layers based on their names (in the @stack
).
## S4 method for signature 'VirtualArray,ANY,ANY'
x[i, j, ..., drop = TRUE]
x |
An object from a |
i |
subscript of the first dimension(rows) or vector-like subsetting. |
j |
subscript of the second dimension (columns). |
... |
subscript of additional dimensions. |
drop |
|
An object from either the same class as x
or the class of its elements.
ex <- rastex()
# numeric subsetting
firstThree <- ex[1:3]
# character subsetting
second <- ex["d"]
# logical subsetting
subscript <- rep(FALSE, length(ex))
subscript[2] <- TRUE
second2 <- ex[subscript]
data(paleocoastlines)
present<- paleocoastlines["0", ]
allMargin <- paleocoastlines[, "margin"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.