na.replace {hivPlatform}R Documentation

na.replace

Description

Sets NAs to new value.

Usage

na.replace(x, replace)

Arguments

x

A numeric vector.

replace

Value for replacing NAs

Value

Vector of length of x, but with NA's replaced by new value.

Examples

na.replace(c(1, NA), 2)


[Package hivPlatform version 2.0.5 Index]