list_replace_all()
replaces matches in atomic
vectors
inside a list with a replacement value. If the list is nested, the function
will recursively apply the replacement to all nested lists.
Value
A list
with matches replaced with the replacement
value.
Details
If there is a match, but the replacement value is not the same class as the original value, the function will return the replacement value as is.
If the replacement value is the same class as the original value, the function will return a vector with the replacement value in the same position as the match.