Learn R Programming

move2 (version 0.4.4)

to_move: Convert a move2 object to a move object

Description

Convert a move2 object to a move object

Usage

to_move(x)

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.

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.

See Also

Other move2-convert: mt_as_move2()

Examples

Run this code
# \donttest{
if (requireNamespace("move")) {
  data(leroy, package = "move")
  leroy_move2 <- mt_as_move2(leroy)
  to_move(leroy_move2)
}
# }

Run the code above in your browser using DataLab