replace replaces the values in x with indexes given in list by those given in values. If necessary, the values in values are recycled.
replace
x
list
values
replace(x, list, values)