Description Usage Arguments Value Examples

Minkowski distances from a Spatial* or Spatial*DataFrame object

1 | ```
mink.dists(swdf1, swdf2, pwr, scale, weight)
``` |

`swdf1` |
- First Spatial*DataFrame object |

`swdf2` |
- Second Spatial*DataFrame object (if omitted, defaults to the same value as |

`pwr` |
- Minkowski exponent |

`scale` |
- allows re-scaling eg: value of 1000 means distances in km if coordinates of |

`weight` |
- weight for each element in swdf1 (the demand locations) |

Distance matrix (if `swdf1`

or `swdf2`

not SpatialPoints*,
distances are based on points obtained from `coordinates`

function)

1 2 3 4 | ```
data(meuse)
coordinates(meuse) <- ~x+y
d1 <- mink.dists(meuse,pwr=1,scale=1000) # Taxicab metric
d2 <- mink.dists(meuse,pwr=Inf,scale=1000) # Works for limiting case
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.