powered by
Manhattan distance
manhattan_distance(x, y)
numeric - manhattan distance between x and y
numeric
manhattan_distance(c(1, 1), c(1, 2))
Run the code above in your browser using DataLab