R/HermesData-methods.R
h_map_pos.Rd
This is used by the rename method. It wraps the assertions and the matching used several times.
rename
h_map_pos(names, map)
(character) original names.
character
(named character) the mapping vector from old (value) to new (name) names. All values must be included in names.
names
Integer vector of the positions of the map values in the names.
map
h_map_pos(c("a", "b"), c(d = "b")) #> [1] 2