Learn R Programming

kDGLM (version 1.2.0)

if.na: if.na

Description

This function is wrapper for ifelse(is.na(vec),vec,val)

Usage

if.na(vec, val)

Value

A vector or matrix with the same dimensions as the input, where any NA values have been replaced by the specified val argument.

Arguments

vec

A vector or matrix.

val

The value to replace NA with.