aRTtable-createColumn {aRT} | R Documentation

## Create a column

### Description

Create an empty column in a table.

### Usage

    ## S4 method for signature 'aRTtable':
    createColumn(object, colname, type="c", length=10, key=FALSE, decimals=3, autonumber=FALSE)

### Arguments

`object` | Object of class `aRTtable`.
`colname` | The name of the new column.
`type` | string representing the column type (see below).
`length` | The maximum length of the values if they are strings.
`key` | If the column will have unique values.
`decimals` | Max number of decimal digits after the decimal point.
`autonumber` | Whether the elements of the column start with one and will be automatically created by the DBMS.

### Column Types

i
  integer
d
  decimal (=i)
s
  string
c
  character (=s)
f
  factor (=s)
n
  numeric
r
  real (=n)

### Author(s)

Pedro Ribeiro de Andrade

### See Also

See `aRTtable-class` to show the description of this class.

[Package aRT version 1.7-1 Index]