ID EN
Miscellaneous

replace

R Base 3.6.2

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

Syntax

R
replace(x, list, values)

Arguments

Parameter Description
x vector
list an index vector
values replacement values

Return Value

A vector with the values replaced.