Next: , Previous: , Up: API Alphabetically   [Contents]


8.2.59 table

Class: table

Tabular data array containing multiple columnar variables.

A table is a tabular data structure that collects multiple parallel named variables. Each variable is treated like a column. (Possibly a multi-columned column, if that makes sense.) The types of variables may be heterogeneous.

A table object is like an SQL table or resultset, or a relation, or a DataFrame in R or Pandas.

A table is an array in itself: its size is nrows-by-nvariables, and you can index along the rows and variables by indexing into the table along dimensions 1 and 2.

A note on accessing properties of a table array: Because .-indexing is used to access the variables inside the array, it can’t also be directly used to access properties as well. Instead, do t.Properties.<property> for a table t. That will give you a property instead of a variable. (And due to this mechanism, it will cause problems if you have a table with a variable named Properties. Try to avoid that.)

Instance Variable of table: cellstr VariableNames

The names of the variables in the table, as a cellstr row vector.

Instance Variable of table: cell VariableValues

A cell vector containing the values for each of the variables. VariableValues(i) corresponds to VariableNames(i).

Instance Variable of table: cellstr RowNames

An optional list of row names that identify each row in the table. This is a cellstr column vector, if present.


Next: , Previous: , Up: API Alphabetically   [Contents]