aRTtable-createColumn          package:aRT          R Documentation

_C_r_e_a_t_e _a _c_o_l_u_m_n

_D_e_s_c_r_i_p_t_i_o_n:

     Create an empty column in a table.

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

  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.

_C_o_l_u_m_n _T_y_p_e_s:


     _i integer

     _d decimal (=i)

     _s string

     _c character (=s)

     _f factor (=s)

     _n numeric

     _r real (=n)

_A_u_t_h_o_r(_s):

     Pedro Ribeiro de Andrade

_S_e_e _A_l_s_o:

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

