NAtoZer {muStat}R Documentation

Dealing With Missing Values

Description

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

Usage

NAtoZer(x)

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

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

[Package muStat version 1.5.0 Index]