replace_vecelements function

Replace elements in a data.frame or vector of length > 1 by name