Replace NA values with a specified constant

coalesce(v, replacement_value)

Arguments

v

a numeric vector that may contain NA values

replacement_value

a constant with with NA values should be replaced

Value

a copy of v with NA values replaced by replacement_value