Object Reference : Object View and Procedure Reference : Table
  
 
insertcol
Insert additional columns in a table.
Syntax
table_name.insertcol(col_loc) [num_cols]
where col_loc specifies the column location to insert the new columns. The col_loc may either be the integer column number (e.g. “3”) or the column letter (e.g. “C”).
The num_cols specifies the number of columns to insert into the table. If num_cols is not provided, the default is one.
Examples
tab1.insertcol(d) 2
inserts two new columns beginning at the “d” or fourth column.
You may do conditional column insertions. This will insert four columns after each column from b to d if cell b7 is greater than each cell f7 to h7:
tab1.insertcol(b:d if [b7] > [f7:h7]) 4
Cross-references
For other row and columns operations, see Table::deleterow, Table::deletecol, and Table::insertrow.
For additional discussion of table commands see “Working with Tables and Spreadsheets”.
See also “Table and Text Objects” for a discussion and examples of table formatting in EViews.