Pt2Pts.wo.obstacle: Calculate distance from one point to a set of points using...

Description Usage Arguments Value Examples

View source: R/Calculate_distances_functions.R

Description

Calculate distance from one point to a set of points using adjacency matrix

Usage

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
)

Arguments

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.

Value

Vector of distances of length(B)

Examples

1
2
3
4
## Not run: 
# Need gdistance ??

## End(Not run)

statnmap/GeoDist documentation built on Feb. 4, 2020, 8:34 p.m.