Description Usage Arguments Value Examples
View source: R/min_dist_to_feature.R
min_dist_to_feature
computes the shortest distance of each location
(as identified by locationsTracks
) in a Tracks
object
to the closest polyline or polygon border. It does not include all possible
features, but starts looking for features in a certain distance from each
location. If no features are found, the search distance is increased
iteratively.
1 | min_dist_to_feature(currenttrack, feature, minrange = 10000)
|
currenttrack |
A |
feature |
A SpatialLines or SpatialPolygons object containing the features to compute distance to. |
minrange |
A numerical value > 0 representing the minimum buffer radius within which
|
A vector
with the shortest distance of all locations in currenttrack
to the closest feature in feature
. For each value in currenttrack
, a distance
value will be returned in the order of data values.
1 | #
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.