Learn R Programming

GSNA (version 0.1.4.2)

negative: negative

Description

This function returns the negative 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

negative(x)

Value

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

Arguments

x

A numeric vector or matrix.

Details

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