Learn R Programming

scidb (version 1.0-1)

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
# Build a two-dimensional array called 'yikes' with a non-integer dimension
scidbremove(c("cazart","yikes"),error=warning)
iquery("store(apply(build_sparse(<val:double>[i=0:9,5,1,j=0:20,2,0],random()/1000000000,i<j or j=20),a,format(i,'aiquery("create array yikes<val:double>[a(string)=*,5,1,j=0:20,2,0]")
iquery("redimension_store(cazart,yikes)")

yikes <- scidb("yikes")
yikes[between('a3','a8'),] []

Run the code above in your browser using DataLab