Type of Output
Syntax
Rows
Variables
Examples
Table, containing
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])
Table having
the first five
rows and the
first, fourth,
and fifth
variables of T
• T(:,
{'A','B'})
Table having all
rows and the
variables
named 'A' and
'B' from T
Table, containing
variables that
have specified
data type
S =
vartype(type);
T(rows,S)
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 a data
type, such as
'numeric',
'categorical',
or 'datetime'
• S =
vartype('num
eric');
T(1:5,S)
Table having
the first five
rows and the
numeric
variables of T
Array, extracting
data from one
variable
T.var
T.(expression)
Not specified
Specified as:
• A variable
name (without
quotation
marks)
• An expression
inside
parentheses
that returns a
variable name
or number
• T.Date
Array extracted
from table
variable named
'Date'
• T.
('2019/06/30
')
Array extracted
from table
variable named
'2019/06/30'
• T.(1)
Array extracted
from the first
table variable
Access Data in Tables
9-33
Syntax
Rows
Variables
Examples
Table, containing
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])
Table having
the first five
rows and the
first, fourth,
and fifth
variables of T
• T(:,
{'A','B'})
Table having all
rows and the
variables
named 'A' and
'B' from T
Table, containing
variables that
have specified
data type
S =
vartype(type);
T(rows,S)
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 a data
type, such as
'numeric',
'categorical',
or 'datetime'
• S =
vartype('num
eric');
T(1:5,S)
Table having
the first five
rows and the
numeric
variables of T
Array, extracting
data from one
variable
T.var
T.(expression)
Not specified
Specified as:
• A variable
name (without
quotation
marks)
• An expression
inside
parentheses
that returns a
variable name
or number
• T.Date
Array extracted
from table
variable named
'Date'
• T.
('2019/06/30
')
Array extracted
from table
variable named
'2019/06/30'
• T.(1)
Array extracted
from the first
table variable
Access Data in Tables
9-33
