Learn R Programming

SWMPrExtension (version 2.2.5.1)

remove_inf_and_nan: Replace Inf/-Inf/NaN values

Description

Replace Inf, -Inf, and NaN in a matrix with NA

Usage

remove_inf_and_nan(x)

Value

Returns a matrix object

Arguments

x

input matrix

Author

Julie Padilla

Details

This function replaces Inf, -Inf, and NaN in a matrix with NA. It is used internally by several functions.