revCustomMatrixDist: Reverse a symetric data.frame (or matrix). Specifically...

View source: R/utils-DF.R

revCustomMatrixDistR Documentation

Reverse a symetric data.frame (or matrix). Specifically designed for symetric distance matrix. Diagonal is identity, i.e. the distance on the diagonal is 0 (each object is the least distant to itself)

Description

Reverse a symetric data.frame (or matrix). Specifically designed for symetric distance matrix. Diagonal is identity, i.e. the distance on the diagonal is 0 (each object is the least distant to itself)

Usage

revCustomMatrixDist(x, replacement = 1)

Arguments

x

numeric data.frame or matrix

replacement

numeric. Default 1 (to replace -Inf due to division by 0)

Value

numeric data.frame


barzine/barzinePhdR documentation built on Nov. 23, 2024, 8:54 p.m.