Learn R Programming

scidb (version 1.1-2)

cast: Low-level SciDB cast operator

Description

Apply the low-level SciDB cast operator to a SciDB array.

Usage

cast(x, schema, `eval`=FALSE)

Arguments

x
A scidb or scidbdf object.
schema
A character string representation of a SciDB array schema.
eval
(Optional) If true, execute the query and store the reult array. Otherwise defer evaluation.

Value

  • A new scidb or scidbdf object.

See Also

scidb attribute_rename dimension_rename

Examples

Run this code
x <- as.scidb(iris)
y <- cast(x,"<a:double,b:double,c:double,e:double,f:string>[row=1:150,150,0]")

print(head(y))

Run the code above in your browser using DataLab