gdist: Distance Matrix Computation

View source: R/gdist.R

gdistR Documentation

Distance Matrix Computation

Description

This function can computes and returns the distance matrix based on the data type.

Usage

gdist(.data, .FUN = NULL, .formula = NULL, ...)

dist_func(...)

Arguments

.data

a data frame object.

.FUN

the name of dist function.

.formula

lambda function.

...

other parameters passing to dist function.

Value

dist matrix.

Author(s)

Hou Yun

Examples

gdist(mtcars)
gdist(iris)

m <- matrix(sample(LETTERS, 100, TRUE), nrow = 10)
gdist(m)

Hy4m/linkET documentation built on June 30, 2023, 7:39 p.m.