Learn R Programming

scidb (version 1.2-0)

between: between

Description

Use between to select contiguous subarrays in indexing operations. The between function would not normally be used directly but rather inside bracket indexing operations as shown in the example. This function is designed to support efficient indexing of contiguous subarrays for arrays with non-integer dimensions.

Usage

between(a,b)

Arguments

a
A SciDB array range bound (numeric or string in the case of non-integer dimension)
b
A SciDB array range bound (numeric or string in the case of non-integer dimension)

Value

A function that evaluates to a list of the specified bounds.

See Also

scidb

Examples

Run this code
## Not run: 
# # Upload data to create a 10x10 SciDB matrix
# A <- as.scidb(matrix(rnorm(100),10))
# # The following are equivalent, but between avoids creating an
# # indexing vector:
# A[0:4,][]
# A[between(0,4),][]
# ## End(Not run)

Run the code above in your browser using DataLab