Learn R Programming

scidb (version 1.2-0)

build: build

Description

The build function is a wrapper to the SciDB `build` operator. Operation is similar to the R matrix and array functions. It creates a new single-attribute SciDB array based on the specified parameters.

Usage

build(data, dim, names, type, start, name, chunksize, overlap, gc=TRUE, `eval`)

Arguments

data
A valid SciDB expression (expressed as a character string) or constant to fill the array.
dim
A vector of dimension lengths.
names
An optional vector of attribute and dimension names. Default attribute name is `val` and the dimension names are labeled i,j,... by default.
type
The SciDB type of the array attribute.
start
An optional vector of starting dimension coordinate indices. Must match the length of the dim vector.
name
Optional name of the SciDB array. An automatically generated name is used by default.
chunksize
An optional vector of dimension chunk sizes. Must match the length of the dim vector.
overlap
An optional vector of dimension overlap values. Must match the length of the dim vector.
gc
gc=TRUE (the default) removes the array when corresponding R objects are garbage collected. Set gc=FALSE to preserve arrays.
eval
(Optional) If true, execute the query and store the reult array. Otherwise defer evaluation.

Value

A scidb object.

See Also

scidb

Examples

Run this code
## Not run: 
# y <- build(pi, c(5,3))
# print(head(y))
# ## End(Not run)

Run the code above in your browser using DataLab