distance information from a track or track stack

Share:

Description

DistanceSummary returns a summary of distance related measurements of a track or track stack, or for the distance function the distance between locations.

Usage

1
2
3
4
5
6
7
8
  ## S4 method for signature '.MoveTrackSingle,missing'
distance(x)
  ## S4 method for signature '.MoveTrackStack,missing'
distance(x)
  ## S4 method for signature '.MoveTrackSingle'
distanceSummary(x)
  ## S4 method for signature '.MoveTrackStack'
distanceSummary(x)

Arguments

x

Move or MoveStack object

Value

All values are returned in meters if the projection of the coordinates is longlat, otherwise their in map units mostly meters as well. For longlat distance on a sphere is calculated using the ellipsoid else on a plane using Pythagoras. Check and set the projection of your Move or MoveStack object using the proj4string() function.

Author(s)

Marco Smolla

Examples

1
2
3
4
5
6
  data(fishers)
  data(leroy)
  distance(leroy) #distances from a Move object 
  distance(fishers) #distances from a MoveStack object
  #distanceSummary(leroy) # summary of distance measures of a Move object
  #distanceSummary(fishers) # summary of distance measures of a MoveStack object

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.