Survey Tabulation > Advanced expressions > UNICOM Intelligence function library > Categorical functions > Factor
 
Factor
Returns the factor defined for an element of a categorical variable.
Syntax
Factor(Val)
Parameters
Val
Type: Categorical
The element to look up.
(return)
Type: None
Factor number as defined on the element.
Remarks
If Val contains more than one element, only the factor for the first element is returned. If Val is {}, the return value is NULL. If the current data value is NULL, Val is {} and the return value is NULL.
If the first "element" in Val 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. The factor can be a Long or Double value.
See also
Categorical functions