Factor
Returns the factor defined for an element of a categorical variable.
Syntax
Factor(<value>)
Parameters
<value>
Type: Categorical
The element to look up.
(return)
Type: None
Factor number as defined on the element.
Notes
If <value> contains more than one element, only the factor for the first element is returned. If <value> is {}, the return value is NULL. If the current data value is NULL, <value> is {} and the return value is NULL.
If the first “element” in <value> is actually (the MDM value of) an element list, the sublist is expanded until an actual element is found, if any. If the element does not have a factor defined, the return value is NULL. Note that the factor can be a Long or Double value.
See also