slice_.tbl_scidb: Select SciDB subarrays by coordinates

Description Usage Examples

View source: R/tbl_scidb.R

Description

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.

Usage

1
2
## S3 method for class 'tbl_scidb'
slice_(.data, ..., .dots = list())

Examples

 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)

Paradigm4/scidb.dplyr documentation built on May 5, 2019, 4:46 p.m.