as.movement_matrix: Conversion to movement_matrix

View source: R/movement.R

as.movement_matrixR Documentation

Conversion to movement_matrix

Description

Convert a data.frame or matrix object to a movement_matrix object.

Usage

as.movement_matrix(object, ...)

## S3 method for class 'data.frame'
as.movement_matrix(object, ...)

## S3 method for class 'matrix'
as.movement_matrix(object, ...)

Arguments

object

object to convert to a movement_matrix object. Either a data.frame with columns origin (character), destination (character) and movement (numeric) or a square matrix object

...

further arguments passed to or from other methods.

Value

A movement_matrix containing the observed movements.


SEEG-Oxford/movement documentation built on April 17, 2023, 4:17 p.m.