Replaces all values in x which match old with values in new.
Values are matched with base::match().
Arguments
- x
(
vector()).- old
(
vector())
Vector with values to replace.- new
(
vector())
Values to replace with. Will be forced to the same length asoldwithbase::rep_len().
Value
(vector()) of the same length as x.
