View source: R/manhattan_dist.R
manhattan_dist | R Documentation |
Calculates the manhattan distance between two 2D points
manhattan_dist(A, B)
A |
One of the 2D points |
B |
The other 2D point |
Manhattan distance calculated between point A and B
Andres Missiego Manjon
distance = manhattan_dist(c(1,2), c(3,4));
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.