gdist | R Documentation |
This function can computes and returns the distance matrix based on the data type.
gdist(.data, .FUN = NULL, .formula = NULL, ...)
dist_func(...)
.data |
a data frame object. |
.FUN |
the name of dist function. |
.formula |
lambda function. |
... |
other parameters passing to dist function. |
dist matrix.
Hou Yun
gdist(mtcars)
gdist(iris)
m <- matrix(sample(LETTERS, 100, TRUE), nrow = 10)
gdist(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.