s.distance | R Documentation |
This function calculates the distances between the columns of a numeric matrix.
s.distance(
data,
distance = "correlation",
correlation = "pearson",
checkNan = TRUE
)
data |
A numeric matrix with variables in the columns. |
distance |
Character string specifying the type of distance.
It can be |
correlation |
Character string specifying the type of correlation if |
checkNan |
Logical value indicating whether to check for |
The main purpose of exporting this statistics helper method is to show the inner calculations of the package.
A symmetric matrix (lower triangle as a vector).
n <- 10
data <- data.frame(x = rnorm(n), y = rnorm(n), z = rnorm(n))
distances <- s.distance(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.