powered by
Calculates the manhattan distance between two 2D points
manhattan_dist(A, B)
Manhattan distance calculated between point A and B
One of the 2D points
The other 2D point
Andres Missiego Manjon
distance = manhattan_dist(c(1,2), c(3,4));
Run the code above in your browser using DataLab