Learn R Programming

NetRep (version 1.0.2)

CheckFinite: Check whether there are any non-finite values in a matrix

Description

The C++ functions will not work with NA values, and the calculation of the summary profile will take a long time to run before crashing.

Usage

CheckFinite(matPtr)

Arguments

matPtr
matrix to check.

Value

Throws an error if any NA, NaN, Inf, or -Inf values are found, otherwise returns silently.