powered by
Replace Inf, -Inf, and NaN in a matrix with NA
Inf
-Inf
NaN
NA
remove_inf_and_nan(x)
input matrix
Returns a matrix object
matrix
This function replaces Inf, -Inf, and NaN in a matrix with NA. It is used internally by several functions.