vartype
Subscript into a table by variable type.
A utility class that facilitates subscripting table variables according to their data type.
See also: table
Source Code: vartype
Create a subscript into table by variable type.
S = vartype (type)
creates a subscript to select table
variables of a specified type. The input argument, type, must be a
character vector or a string scalar that specifies any type that is
accepted by the isa
function, such as numeric
,
logical
, integer
, string
, categorical
, etc.
It can also be cellstr
to select variables that contain cell
arrays of character vectors.
Match a vartype
object to a variable value.
TF = varMatch (obj, value)
compares the class
type of the variable in value with the predifined class type in the
vartype
object. If they are equal, TF is true
,
otherwise TF is false
.
Match a vartype
object to a variable value.
TF = varMatch (obj, value)
compares the class
type of the variable in value with the predifined class type in the
vartype
object. If they are equal, TF is true
,
otherwise TF is false
.
Match a vartype
object to a variable value.
TF = varMatch (obj, value)
compares the class
type of the variable in value with the predifined class type in the
vartype
object. If they are equal, TF is true
,
otherwise TF is false
.