Learn R Programming

GSNA (version 0.1.4.2)

complement: complement

Description

This function returns the complement of a numeric or integer vector or matrix. This may be suitable as the matrix_scaling_fun() argument for gsnPareNetGenericHierarchic() when being used with such distance metrics as the Jaccard Index or Szymkiewicz–Simpson Overlap Coefficients to transform them into something more approximating a distance in behavior.

Usage

complement(x)

Value

The complement of the x argument, equal to \(1 - x\).

Arguments

x

A numeric vector or matrix.

Details

This function also sets matrix or vector attributes appropriately for negation of the input.