Description Usage Arguments Value Examples
View source: R/Calculate_distances_functions.R
Calculate distance from one point to a set of points using adjacency matrix
1 2 3 4 5 6 7 8 9 | Pt2Pts.wo.obstacle(
dref.from,
dref.to,
dref.r,
r.ref,
longlat,
small.dist = TRUE,
keep.path = FALSE
)
|
dref.from |
object of class distref.data for a single point |
dref.to |
object of class distref.data |
dref.r |
object of class distref.raster corresponding to r.ref |
r.ref |
reference raster (only used for its coordinates here) |
longlat |
Logical. if FALSE, Euclidean distance, if TRUE Great Circle distance. Defined from r.ref. |
small.dist |
if TRUE, distances <= 1 paths are directly calculated. |
keep.path |
Logical. Whether to keep SpatialLines of paths. This allows real distances when 2 points are in the same raster cell or close. |
Vector of distances of length(B)
1 2 3 4 | ## Not run:
# Need gdistance ??
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.