recodeVar function

Recode values of a vector