to_move {move2}R Documentation

Convert a move2 object to a move object

Description

Convert a move2 object to a move object

Usage

to_move(x)

Arguments

x

a move2 object.

Details

Note that the individuals are ordered as they occur in the event data in the created MoveStack-class object as the order needs to correspond there between the event and track data for move.

Value

an object of the class Move/MoveStack

to_move converts back to a objects from the move package. When multiple individuals are provided a MoveStack-class is created otherwise a Move-class object.

See Also

Other move2-convert: mt_as_move2()

Examples


if (requireNamespace("move")) {
  data(leroy, package = "move")
  leroy_move2 <- mt_as_move2(leroy)
  to_move(leroy_move2)
}


[Package move2 version 0.2.7 Index]