- Processing
- p5.js
- Processing.py
- Processing for Android
- Processing for Pi

- Processing Foundation

This reference is for Processing 3.0+. If you have a previous version, use the reference included with your software in the Help menu. If you see any errors or have suggestions, please let us know. If you prefer a more technical reference, visit the Processing Core Javadoc and Libraries Javadoc.

Class | Table
Name | ### removeColumn()
Examples |
    Table table;

    void setup() {

      table = new Table();

      table.addColumn("id");
      table.addColumn("species");
      table.addColumn("name");
      println(table.getColumnCount());  //Prints 3

      table.removeColumn("id");         //Reference by title
      println(table.getColumnCount());  //Prints 2
    }
    Table table;

    void setup() {

      table = new Table();

      table.addColumn("id");
      table.addColumn("species");
      table.addColumn("name");
      println(table.getColumnCount());  //Prints 3

      table.removeColumn(0);            //Reference by ID
      println(table.getColumnCount());  //Prints 2
    }
Description | Use removeColumn() to remove an existing column from a Table object. The column to be removed may be identified by either its title (a String) or its index value (an int). removeColumn(0) would remove the first column, removeColumn(1) would remove the second column, and so on.
Syntax |
    .removeColumn(columnName)
    .removeColumn(column)
Parameters |
columnName | String: the title of the column to be removed
column | int: the index number of the column to be removed
Returns | void
Related | addColumn()

Updated on July 4, 2018 11:56:45am EDT