powered by
calculates euclidean distances for n dimensions
p_dist(p1, p2)
the distance between the two points
point 1
point 2
p_dist(c(0,0), c(3,4))
Run the code above in your browser using DataLab