powered by
Pythagorean distance between two points. Called internally.
pdist(p1, p2)
Distance (numeric)
X-Y coordinates of point 1
X-Y coordinates of point 2
Matt Tyers
point1 <- c(1,3) point2 <- c(4,7) pdist(point1,point2)
Run the code above in your browser using DataLab