translate_vector function

This function relabels a vector