homedist: Calculate maximum distance from 'home' for each trip

Description Usage Arguments Value See Also

View source: R/distance.R

Description

This function returns a distance from a given 'home' coordinate for each individual trip. Use the home argument to provide a single, common 2-element (x,y or lon,lat) coordinate. If home is NULL (the default), then each individual trip's first location is used.

Usage

1
homedist(x, home = NULL)

Arguments

x

trip object

home

see details

Value

numeric vector of distances in km (for longlat), or in the units of the trip's projection

See Also

spDistsN1


mdsumner/trip documentation built on May 1, 2018, 11:33 p.m.