Learn R Programming

UAHDataScienceO (version 1.0.0)

manhattan_dist: manhattan_dist

Description

Calculates the manhattan distance between two 2D points

Usage

manhattan_dist(A, B)

Value

Manhattan distance calculated between point A and B

Arguments

A

One of the 2D points

B

The other 2D point

Author

Andres Missiego Manjon

Examples

Run this code
distance = manhattan_dist(c(1,2), c(3,4));

Run the code above in your browser using DataLab