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