Learn R Programming

kDGLM (version 1.2.12)

if.null: if.null

Description

This function is wrapper for ifelse(is.null(.),.,.)

Usage

if.null(vec, val)

Value

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

Arguments

vec

A vector or matrix.

val

The value to replace NULL with.