Hash Map Rules
Structure
Builds a hash map of Categorical
values indexed by Categorical
keys. The operands must come from
VectorC
rules of the same size, with unique keys in the
keyVector
.
TableHashMapC
Builds a hash map of Categorical
values from keys and values in a table. In case of duplicate keys
in the table, only the first matching value is kept.
ValueAtKeyC
Returns a value of a categorical hash map at given key. Returns ""
if not found. It allows to
efficiently recode a Categorical
value into another Categorical
value.
Example
HashMap
Builds a hash map of numerical values indexed by keys. The operands must be the result of
VectorC
and
Vector
rules of the same size, with unique keys in the
vector of keys.
TableHashMap
Builds a hash map of Numerical
values from keys and values in a table. In case of duplicate keys
in the table, only the first matching value is kept.
ValueAtKey
Returns a value of a numerical hash map at given key. Returns missing value is not found. It allows
to efficiently recode a Categorical
value into a Numerical
one.