Schema-class: Schema

Description Format Methods Examples

Description

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

Format

An R6 class object.

Methods

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
schema <- Schema(name='MyTable', parent=project)
schema$addColumn(Column(name='Isotope', columnType='STRING'))
cols <- c(Column(name='Atomic Mass', columnType='INTEGER'),
	Column(name='Halflife', columnType='DOUBLE'),
	Column(name='Discovered', columnType='DATE'))
schema$addColumns(cols)
schema$has_columns()
schema$removeColumn(Column(name='Discovered', columnType='DATE'))
schema <- synStore(schema)

## End(Not run)

Sage-Bionetworks/synapser documentation built on July 12, 2019, 11:46 a.m.