Learn R Programming

move (version 2.1.0)

distance: distance information from a track or track stack

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

# S4 method for .MoveTrackSingle,missing
distance(x)
  # S4 method for .MoveTrackStack,missing
distance(x)
  # S4 method for .MoveTrackSingle
distanceSummary(x)
  # S4 method for .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.

Examples

Run this code
# NOT RUN {
  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
# }

Run the code above in your browser using DataLab