as.scidb: Upload R data to SciDB

View source: R/utility.R

as.scidbR Documentation

Upload R data to SciDB

Description

Upload R data to SciDB

Usage

as.scidb(db, x, name, start = NULL, gc = NULL, ...)

Arguments

db

a scidb database connection returned from scidbconnect

x

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

name

a SciDB array name to use

start

starting SciDB integer coordinate index (does not apply to data frames)

gc

set to FALSE to disconnect the SciDB array from R's garbage collector

...

other options, see

  • .df2scidb.shim: for uploading R data frame

  • .matrix2scidb.shim: for uploading sparse matrices

  • .matvec2scidb.shim: for uploading dense R vectors, arrays or matrices

  • .raw2scidb.shim: for uploading raw values

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.R


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