Dealing With Missing Values

Share:

Description

Any missing values in input data will be converted to 0.

Usage

1

Arguments

x

data object

Value

Returns the input data object x with all missing values replaced by 0.

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

Examples

1
2
NAtoZer(c(2, 4, NA, 5))
# [1] 2 4 0 5