Learn R Programming

⚠️There's a newer version (1.10.0) of this package.Take me there.

Tools for animal track data

The trip package provides functions for accessing and manipulating spatial data for animal tracking. Filter for speed and create time spent plots from animal track data.

Installing

A) The package is easily installed from CRAN using 'install.packages("trip")' from R.

OR

B) The package can be easily built with RStudio.

  1. Install R

  2. Install RStudio

  3. Install Rtools or equivalent for your platform

  4. Install sp, spatstat, maptools, adehabitatLT, packages and dependencies.

  5. Clone the repository from GitHub (https://github.com/mdsumner/trip).

  6. Create an Rstudio project in the folder containing this README file.

  7. Click 'Build and Reload' to make the package immediately available

to RStudio, or 'Build Source Package' or `Build Binary Package' from the 'Build' tab to make source or binary package.

TODO

  • Probability image. The SGAT (and tripEstimation) packages have

functions for dealing with spatial track summaries that are atomized to the level of each time step. There are methods for combining summaries from multiple tracks and for casting arbitrary durations (by sum) to standard image structures. This would be a good feature to replace the existing tripGrid function by storing the individual grid summaries for each implicit line segment.

  • Coercion to/from other classes The crawl and move packages contain objects that

could be coerced in a straightforward way, see the Spatio Temporal Task View for more (in the Moving Objects / Trajectories section). The hyperframe in spatstat is another example, and to follow up Edzer's work in spacetime.

  • Cut cleanup cut.trip should just work with inputs like cut.POSIXt. Simple.

  • Determination of "home" Need tools to allow users to more easily detect and classify durations when the animal

migrating or just kicking it at home.

  • Grid topology Consider replacement of makeGridTopology, possibly using raster. (tripGrid could be replaced by a rasterize method).

  • Validation Must include a detailed report object of where the problems are, and how to filter/fix/flush them.

Copy Link

Version

Install

install.packages('trip')

Monthly Downloads

575

Version

1.1-21

License

GPL-3

Maintainer

Michael D. Sumner

Last Published

May 21st, 2015

Functions in trip (1.1-21)

filter.penSS

Non-destructive smoothing filter
TimeOrderedRecords-class

A class for the identifiers of DateTime and ID records in spatial data.
sepIdGaps

Separate a set of IDs based on gaps
homedist

Calculate maximum distance from 'home' for each trip
cut.trip

Split trip events into exact time-based boundaries.
adjust.duplicateTimes

Adjust duplicate DateTime values
trip.split.exact

Deprecated functions in trip
trackAngle

Determine internal angles along a track
trip-accessors

Functions to retrieve DateTime and ID data from within (Spatial) data frames.
forceCompliance

Function to ensure dates and times are in order with trip ID
trip-internal

Internal trip Functions
as.trip

Coercion from other classes to trip objects
trip-class

A class for sets of animal trips (track data).
trip-methods

Function to handle animal track data, organized as "trip"s
readArgos

Read Argos "DAT" or "DIAG" files
as.Other

As ("trip", other-classes)
makeGridTopology

Generate a GridTopology from a Spatial object
tripGrid

Generate a grid of time spent by line-to-cell gridding
rasterize

Rasterize trip objects based on line-segment attributes.
oc.theme

SeaWiFS ocean colour colours
TimeOrderedRecords

TimeOrderedRecords
speedfilter

Filter track data for speed
trackDistance

Determine distances along a track
tripGrid.interp

Generate a grid of time spent using approximate methods
sda

Filter track for speed, distance and angle.
argos.sigma

Assign numeric values for Argos "class"