powered by
Finds the inter-euclidean distance for a data matrix
euclidean(data, m = 1, n = ncol(data))
Calculates the euclidean distance between successive rows of the matrix based on columns m:n.
A vector or matrix of numerical data.
The first column of data to be used in the distance calculation.
The last column of data to be used in the distance calculation.
steady
euclidean(cbind(c(1,2,3,4), c(2,3,2,2)))
Run the code above in your browser using DataLab