na.zero {hivPlatform}R Documentation

na.zero

Description

Sets NAs to zero.

Usage

na.zero(x)

Arguments

x

A numeric vector. No test that x is numeric.

Value

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

Examples

na.zero(c(1, NA))


[Package hivPlatform version 2.0.5 Index]