Description Usage Arguments Value Examples

View source: R/tbmain.R View source: R/tbmain.R

This reports the *p*-median set

1 |

`swdf1` |
- first Spatial* or Spatial*DataFrame objects - the 'demand' set |

`swdf2` |
- second Spatial* or Spatial*DataFrame objects - the 'supply' set (if omitted, defaults to the same value as |

`p` |
- either a guess at the initial |

`metric` |
- the distance matrix (defaults to Euclidean computed via |

`verbose` |
- if TRUE print out each swap in the algorithm (default is FALSE) |

Set of point indices for *p*-median (may be local optimum)

1 2 3 |

```
Loading required package: Rcpp
Loading required package: sp
[1] 75 47 142 12 113
```

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.