Upload: Upload R data and store() it into a SciDB array. Return a...

View source: R/generic_connection.R

UploadR Documentation

Upload R data and store() it into a SciDB array. Return a scidb object wrapping the array.

Description

Upload R data and store() it into a SciDB array. Return a scidb object wrapping the array.

Usage

Upload(db, payload, name = NULL, gc = TRUE, temp = FALSE, ...)

Arguments

db

a scidb database connection returned from scidbconnect

payload

an R data frame, raw value, Matrix, matrix, or vector object

name

a SciDB array name to store the payload into, or NULL to generate a unique name

gc

if TRUE, the SciDB array will be removed when the return value gets garbage-collected. Set to FALSE to disconnect the SciDB array from R's garbage collector, i.e. to persist the SciDB array beyond the lifetime of this session.

temp

(boolean) make the SciDB array a temporary array (only lasting for the lifetime of the session)

...

other options, see each subclass implementation

start

starting coordinate index, or NULL to start at zero on every dimension. Does not apply to data frames.

Value

A scidb object

Note

Supported R objects include data frames, scalars, vectors, dense matrices, and double-precision sparse matrices of class CsparseMatrix. Supported R scalar types and their resulting SciDB types are:

  • integer -> int32

  • logical -> int32

  • character -> string

  • double -> double

  • integer64 -> int64

  • raw -> binary

  • Date -> datetime

R factor values are converted to their corresponding character levels.

See Also

as.scidb


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.