Learn R Programming

move (version 1.0)

move2ade: Convert a Move or MoveStack object to adehabitat compatible object

Description

Convert a Move or MoveStack object to adehabitat compatible object. This is necessary because Move and MoveStack objects are not inherited by the object class that is typically used by the adehabitat package. Therefore, the move2ade function allows to use functions of the adehabitatHR package with objects that were originally created with the Move package.

Usage

## S3 method for class '.MoveTrackSingle':
move2ade(x)
  ## S3 method for class '.MoveTrack':
move2ade(x)

Arguments

x
a Move or MoveStack object

Value

  • The returned object is from SpatialPointsDataFrame with the animal name (or 'unnamed') stored in the data slot of the SpatialPointsDataFrame.

Examples

Run this code
load(system.file("extdata", "move.RData", package="move"), .GlobalEnv)
  stack <- moveStack(list(leroy,leroy))
  
  move2ade(ricky) #for a Move object
  move2ade(stack) #for a MoveStack object

Run the code above in your browser using DataLab