A tidyverse-compatible function to replace NAs in a vector by a given value

na.replace(x, value)

Arguments

x

vector

value

Replace NAs by this variable

Value

A vector with NA replaced by value