Learn R Programming

scidb (version 1.2-0)

grand-methods: Miscellaneous methods from package scidb

Description

The methods described here compute a global aggregate on a SciDB array object and return a scalar value to R.

Usage

"mean"(x) "mean"(x) "median"(x) "median"(x) "sum"(x) "sum"(x) "min"(x) "min"(x) "max"(x) "max"(x) "count"(x) "count"(x) "sd"(x) "sd"(x) "var"(x) "var"(x)

Arguments

x
A scidb or scidbdf object.

Value

Details

sum computes the global sum of the SciDB array elements (applies only to numeric types); mean computes the arithmetic average of the SciDB array elements; median computes the median of the SciDB array elements; min computes the minimum of the SciDB array elements; max computes the maximum of the SciDB array elements; count returns the number of non-empty cell values in the SciDB array; sd computes the standard deviation of the SciDB array elements (numeric only); var computes the variance of the SciDB array elements (numeric only).

Examples

Run this code
## Not run: 
# data("iris")
# x <- as.scidb(iris)
# sum(x$Petal_Length)
# ## End(Not run)

Run the code above in your browser using DataLab