replace_vars function

Fast value replacement in data frame