Learn R Programming

manifestoR (version 1.5.0)

na_replace: Replace NAs in vector with fixed value

Description

Replace NAs in vector with fixed value

Usage

na_replace(vec, value = 0L)

Arguments

vec

vector to replace NAs in

value

value to inject for NA