na.zero: na.zero

View source: R/na.zero.R

na.zeroR 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))


nextpagesoft/hivEstimatesAccuracy documentation built on Sept. 17, 2024, 5 a.m.