# calculateManhattanDistance: Calculates the manhattan distance. In Irescale: Calculate and Rectify Moran's I

## Description

calculateManhattanDistance Calculates the manhattan distance between each pair of nodes.

## Usage

 1 calculateManhattanDistance(data)

## Arguments

 data 2D structure with n rows and 2 colums that represents the coordinate in a plane.

## Value

Matrix, of size nrow(data) \times nrow(data), with the distance between each the pair of points.

## Examples

 1 2 3 fileInput <- system.file("testdata", "chessboard.csv", package="Irescale") data<-loadChessBoard(fileInput) distM<-calculateManhattanDistance(data\$data)

Irescale documentation built on Nov. 22, 2019, 1:07 a.m.