na.zero: Replace NA by 0

Usage Arguments Examples

Usage

1

Arguments

x

An array or matrix

Examples

1
2
3
4
x <- c(-1,0,1,0,NA,0,1,1)
na.zero(x)
x <- matrix(x, ncol=2)
na.zero(x)

einaooka/tea.utilities documentation built on May 16, 2019, 1:25 a.m.