This method is mapped to the SciDB between
operator. Each argument
specifies a range of SciDB array coordinates in the order of the listed
SciDB array dimensions. Use NA
or missing ranges to include everything.
1 2 |
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
library(scidb.dplyr)
db <- scidbconnect()
x <- tbl(as.scidb(db, matrix(1:20, nrow=5))) # (a 5 x 4 matrix)
# Slice rows zero to three in the first dimension, all of the 2nd dimension:
slice(x, 0:3)
# Slice rows zero to three in the 1st array dimension, 1 to 2 in the 2nd:
slice(x, 0:3, 1:2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.