replaceNaN_byname: Replace NaN values with a value

Description Usage Arguments Value Examples

View source: R/Unary.R

Description

In a matrix or within matrices in a list, replace all NaN matrix values with val.

Usage

1
replaceNaN_byname(a, val = 0)

Arguments

a

a matrix of list of matrices in which NaN will be replaced by val

val

NaNs are replace by val

Value

a matrix or list of matrices in which all NaN are replaced by val

Examples

1
2
3

Example output

     [,1]
[1,]    1
[2,]    0
     [,1]
[1,]    1
[2,]   42

matsbyname documentation built on Oct. 13, 2021, 1:06 a.m.