powered by
DistancePoints computes the distance between two points
DistancePoints
DistancePoints(P1, P2)
Vector containing the xy-coordinates of point 1
Vector containing the xy-coordinates of point 2
Returns the euclidean distance between two points
# NOT RUN { P1 <- c(0,0) P2 <- c(1,1) d <- DistancePoints(P1, P2) # }
Run the code above in your browser using DataLab