if.nan: if.nan

View source: R/func_helper.R

if.nanR Documentation

if.nan

Description

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

Usage

if.nan(vec, val)

Arguments

vec

A vector or matrix.

val

The value to replace NaN with.

Value

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


kDGLM documentation built on April 4, 2025, 4:44 a.m.