Learn R Programming

scidb (version 1.1-2)

project: project

Description

The project function is a wrapper to the SciDB `project` operator. It creates a new array that is a subset of the input array limited to a set of specified attributes.

Usage

project(X, attributes, eval)

Arguments

X
A scidb or scidbdf object
attributes
A character vector of attributes to project on to
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
x <- as.scidb(iris)
y <- project(x, c("Sepal_Length","Petal_Length","Species"))

print(head(y))

Run the code above in your browser using DataLab