Type of Output
Syntax
Rows
Variables
Examples
Array, extracting
data from one
variable and
specified rows
T.var(rows)
T.(expression)
(rows)
Specified as
numeric or logical
indices of the array
Specified as:
• A variable
name (without
quotation
marks)
• An expression
inside
parentheses
that returns a
variable name
or number
• T.Date(1:5)
First five rows
of array
extracted from
table variable
named 'Date'
• T.
('2019/06/30
')(1:5)
First five rows
of array
extracted from
table variable
named
'2019/06/30'
• T.(1)(1:5)
First five rows
of array
extracted from
the first table
variable
Array,
concatenating
data from
specified rows
and variables
T{rows,vars}
Specified as:
• Row numbers
(between 1 and
m)
• Names, if T has
row names
• Times, if T is a
timetable
• Colon (:),
meaning all
rows
Specified as:
• Variable
numbers
(between 1 and
n)
• Names
• Colon (:),
meaning all
variables
• T{1:5,[1 4
5]}
Array
concatenated
from the first
five rows and
the first, fourth,
and fifth
variables of T
• T{:,
{'A','B'}}
Array
concatenated
from all rows
and the
variables
named 'A' and
'B' from T
9 Tables
9-34
Syntax
Rows
Variables
Examples
Array, extracting
data from one
variable and
specified rows
T.var(rows)
T.(expression)
(rows)
Specified as
numeric or logical
indices of the array
Specified as:
• A variable
name (without
quotation
marks)
• An expression
inside
parentheses
that returns a
variable name
or number
• T.Date(1:5)
First five rows
of array
extracted from
table variable
named 'Date'
• T.
('2019/06/30
')(1:5)
First five rows
of array
extracted from
table variable
named
'2019/06/30'
• T.(1)(1:5)
First five rows
of array
extracted from
the first table
variable
Array,
concatenating
data from
specified rows
and variables
T{rows,vars}
Specified as:
• Row numbers
(between 1 and
m)
• Names, if T has
row names
• Times, if T is a
timetable
• Colon (:),
meaning all
rows
Specified as:
• Variable
numbers
(between 1 and
n)
• Names
• Colon (:),
meaning all
variables
• T{1:5,[1 4
5]}
Array
concatenated
from the first
five rows and
the first, fourth,
and fifth
variables of T
• T{:,
{'A','B'}}
Array
concatenated
from all rows
and the
variables
named 'A' and
'B' from T
9 Tables
9-34
