Description Usage Arguments Details Value Author(s) Examples
Calculates the segment length of a track
1 2 | ## S4 method for signature 'SpatialPointsDataFrame'
seglength(x)
|
x |
a SpatialPointsDataFrame, like a Move or MoveStack object |
The seglength function calculates the distances between point 1 and point 2, point 2 and point 3, ... .
If the SpatialPointsDataFrame is projected in longitude latitude coordinates, the returned values are in meters. If not, the distances are Euclidean distances in map units. Distances are calculates with the pointDistance
from the package raster. Note that in stacks distances are not split between animals.
Marco Smolla
1 2 3 4 |
Loading required package: geosphere
Loading required package: sp
Loading required package: raster
Loading required package: rgdal
rgdal: version: 1.2-10, (SVN revision 673)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.10.1, released 2013/08/26
Path to GDAL shared files: /usr/share/gdal/1.10
Loaded PROJ.4 runtime: Rel. 4.8.0, 6 March 2012, [PJ_VERSION: 480]
Path to PROJ.4 shared files: (autodetected)
WARNING: no proj_defs.dat in PROJ.4 shared files
Linking to sp version: 1.2-3
[1] 6.382461 5.606722 12.671263 9.651801 11.733921 13.928818
Warning message:
'seglength' is deprecated.
Use 'distance' instead.
See help("Deprecated")
[1] 6.382461 5.606722 12.671263 9.651801 11.733921 13.928818
Warning message:
'seglength' is deprecated.
Use 'distance' instead.
See help("Deprecated")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.