COL

Purpose:

Extracts a column of data from a table.

Syntax:

COL(a, column)

a

-

A series or table.

column

-

An integer. The column number to extract.

Returns:

A series.

Example:

W1: {{1, 4, 6},

     {2, 5, 7}, 

     {3, 6, 8}} 

 

col(W1, 2)

 

returns {4, 5, 6}

Example:

W1: {{1, 4, 6},

     {2, 5, 7}, 

     {3, 6, 8}} 

 

W1[.., 2]

 

returns {4, 5, 6}

Remarks:

The COL function may be used with any graph style, not only the table view, to extract a particular series of data from a multi-series set. To extract more than a single column at a time, use the REGION function.

 

See .. (Range Specifier) for more example of the array syntax method for extracting one or more rows and/or columns.

See Also:

.. (Range Specifier)

GETITEM

NUMCOLS

REGION

ROW

SERCOUNT