Object Reference : Object View and Procedure Reference : Table
Insert additional columns in a table.
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.
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
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.