powered by
This function return a distance (or proximity) matrix between n points regularly distributed in 1 dimension.
distEq(n, prox = FALSE)
A squared matrix. A matrix of class dist if prox is set to FALSE.
dist
prox
FALSE
the number of points
a logical indicating whether to return a matrix of proximity. Default to FALSE so the function returns the matrix of distance.
x <- distEq(5)
Run the code above in your browser using DataLab