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="name", type="s", length=5, key=F, decimals=3)

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.

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.6-4 Index]