Learn R Programming

blockmodeling (version 1.1.5)

nanRep: Replaces NaN values by the speficied values (0 by default)

Description

Replaces NaN values by the speficied values (0 by default)

Usage

nanRep(x, rep = 0)

Value

x with NaNs replaced by rep.

Arguments

x

A vector or similar where the NaNs are to be replaced.

rep

A value that should replace the NaNs (0 by default).

Author

Aleš Žiberna