Column: Constructor for objects of type Column

ColumnR Documentation

Constructor for objects of type Column

Description

Defines a column to be used in a table Schema, or in an EntityViewSchema.

Usage

Column(id=NULL, columnType=NULL, maximumSize=NULL, maximumListLength=NULL, name=NULL, enumValues=NULL, defaultValue=NULL)

Arguments

id

optional named parameter: An immutable ID issued by the platform

columnType

optional named parameter: The column type determines the type of data that can be stored in a column. It can be any of: "STRING", "DOUBLE", "INTEGER", "BOOLEAN", "DATE", "FILEHANDLEID", "ENTITYID", "LINK", "LARGETEXT", "USERID". For more information, please see: https://docs.synapse.org/rest/org/sagebionetworks/repo/model/table/ColumnType.html

maximumSize

optional named parameter: A parameter for columnTypes with a maximum size. For example, ColumnType.STRINGs have a default maximum size of 50 characters, but can be set to a maximumSize of 1 to 1000 characters.

maximumListLength

optional named parameter: Required if using a columnType with a "_LIST" suffix. Describes the maximum number of
values that will appear in that list. Value range 1-100 inclusive. Default 100

name

optional named parameter: The display name of the column

enumValues

optional named parameter: Columns type of STRING can be constrained to an enumeration values set on this list.

defaultValue

optional named parameter: The default value for this column. Columns of type FILEHANDLEID and ENTITYID are not allowed to have default values.

Value

An object of type Column

Examples

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

## End(Not run)

Sage-Bionetworks/synapseclient documentation built on Feb. 9, 2024, 4:26 p.m.