Skip to contents

Manhattan distance

Usage

manhattan_distance(x, y)

Arguments

x
  • numeric

y
  • numeric

Value

numeric - manhattan distance between x and y

Examples

manhattan_distance(c(1, 1), c(1, 2))
#> [1] 1