Schema: Constructor for objects of type Schema

SchemaR Documentation

Constructor for objects of type Schema

Description

A Schema is an Entity that defines a set of columns in a table.

Usage

Schema(name=NULL, columns=NULL, parent=NULL, properties=NULL, annotations=NULL, description=NULL)

Arguments

name

the name for the Table Schema object

columns

a list of Column objects or their IDs

parent

the project in Synapse to which this table belongs

properties

A map of Synapse properties

annotations

A map of user defined annotations

description

optional named parameter: User readable description of the schema

Value

An object of type Schema

Examples

## Not run: 
cols <- c(Column(name='Isotope', columnType='STRING'),
	Column(name='Atomic Mass', columnType='INTEGER'),
	Column(name='Halflife', columnType='DOUBLE'),
	Column(name='Discovered', columnType='DATE'))

schema <- synStore(Schema(name='MyTable', columns=cols, parent=project))

## End(Not run)

Sage-Bionetworks/synapser documentation built on Feb. 7, 2024, 12:26 p.m.