as.trajectory: Convert to Trajectory Object

View source: R/trajectory.R

as.trajectoryR Documentation

Convert to Trajectory Object

Description

Converts an object of type 'data.frame' or similar into a 'Trajectory' object. The 'data.frame' should contain columns 'x' and 'y' representing the coordinates.

Usage

as.trajectory(x, delta_time = 1)

Arguments

x

An object of class 'data.frame' with 'x' and 'y' columns.

delta_time

Control variable with a default value of 1.

Value

A 'Trajectory' object containing the coordinates from the 'data.frame'.


BioTrajectory documentation built on Nov. 26, 2025, 5:07 p.m.