to_move: Convert a move2 object to a move object

View source: R/move_convert.R

to_moveR 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)
}


move2 documentation built on April 4, 2025, 12:24 a.m.