This is used by the rename
method. It wraps the assertions and the
matching used several times.
h_map_pos(names, map)
(character
)
original names.
(named character
)
the mapping vector from old (value) to new
(name) names. All values must be included in names
.
Integer vector of the positions of the map
values in the names
.