Learn R Programming

scidb (version 3.0.0)

as.R: Download SciDB data to R

Description

Download SciDB data to R

Usage

as.R(x, only_attributes = FALSE, binary = TRUE)

Arguments

x

a scidb object (a SciDB array or expression)

only_attributes

optional logical argument, if TRUE do not download SciDB dimensions (see note)

binary

optional logical value, set to FALSE to download data using text format (useful for some unsupported SciDB types)

Value

An R data.frame

See Also

as.scidb

Examples

Run this code
# NOT RUN {
db <- scidbconnect()
x <- scidb(db, "build(<v:double>[i=1:5], sin(i))")
as.R(x)
## i          v
## 1  0.8414710
## 2  0.9092974
## 3  0.1411200
## 4 -0.7568025
## 5 -0.9589243

as.R(x, only_attributes=TRUE)
##          v
##  0.8414710
##  0.9092974
##  0.1411200
## -0.7568025
## -0.9589243
# }

Run the code above in your browser using DataLab