Learn R Programming

BioTrajectory (version 1.1.0)

as.trajectory: 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)

Value

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

Arguments

x

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

delta_time

Control variable with a default value of 1.