make.schema: Given lists of attributes and dimensions in the format...

View source: R/schema-utils.R

make.schemaR Documentation

Given lists of attributes and dimensions in the format produced by .dimsplitter() and .attsplitter(), return a SciDB schema string for a schema with those attributes and dimensions. This is essentially the reverse of schema(schema_str).

Description

Given lists of attributes and dimensions in the format produced by .dimsplitter() and .attsplitter(), return a SciDB schema string for a schema with those attributes and dimensions. This is essentially the reverse of schema(schema_str).

Usage

make.schema(db, attributes, dimensions = list(), array_name = "")

Arguments

db

the scidb connection returned by scidbconnect()

attributes

a list of attributes in the format produced by .attsplitter() or schema(x, "attributes")

dimensions

a list of dimensions in the format produced by .dimsplitter() or schema(x, "dimensions"). If not provided, the schema returned will be dimensionless (i.e. for a SciDB dataframe).

array_name

(optional) name of the array to include in the schema

Value

(string) a SciDB schema string


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