trackDist | R Documentation |
Distances along a path
trackDist(x) trackDist2(x, z)
x |
a two column matrix of (lon,lat) locations along the path. |
z |
a two column matrix of (lon,lat) intermediate locations along the path. |
The trackDist
computes the great circle distances (in km)
between successive locations along path. The trackDist2
accepts a second sequence of intermediate points, and computes the
great circle distances along the dog leg paths from x[i,]
to z[i,]
to x[i+1,]
.
vector of interpoint distances (km)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.