distancefile | R Documentation |
Get a table or matrix with the distances (Euclidean or cost distances) between pairs of nodes. It can be used as a connector file.
distancefile(
nodes,
id,
type = "centroid",
distance_unit = NULL,
keep = NULL,
resistance = NULL,
resist.units = FALSE,
CostFun = NULL,
ngh = NULL,
mask = NULL,
threshold = NULL,
geometry_out = NULL,
bounding_circles = NULL,
parallel = FALSE,
ActiveParallel = FALSE,
least_cost.java = FALSE,
cores.java = 1,
ram.java = NULL,
pairwise = TRUE,
write = NULL
)
nodes |
object of class |
id |
|
type |
|
distance_unit |
|
keep |
|
resistance |
|
resist.units |
|
CostFun |
|
ngh |
|
mask |
object of class |
threshold |
|
geometry_out |
|
bounding_circles |
|
parallel |
|
ActiveParallel |
|
least_cost.java |
|
cores.java |
|
ram.java |
|
pairwise |
|
write |
|
Exports a euclidean or cost distance table between pairs of nodes.
https://www.rdocumentation.org/packages/rgeos/versions/0.3-26/topics/gDistance
http://cgm.cs.mcgill.ca/~godfried/teaching/cg-projects/98/normand/main.html.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.