traj_get {cylcop} | R Documentation |
Get a Trajectory from Coordinates
Description
The function calculates step lengths and turn angles from x- and y-coordinates and calculates pseudo-observations from those step lengths and turn angles.
Usage
traj_get(x_coords, y_coords)
Arguments
x_coords |
vector of numeric values containing the x-coordinates of a trajectory. |
y_coords |
vector of numeric values containing the y-coordinates of a trajectory. |
Value
A data.frame containing the trajectory. It has 6 columns containing the x and y coordinates, the turn angles, the step lengths, and the pseudo-observations.
See Also
traj_sim()
.
Examples
set.seed(123)
traj <- traj_sim(n = 5,
copula = cyl_quadsec(0.1),
marginal_circ = list(name="vonmises",coef=list(0, 1)),
marginal_lin = list(name="weibull",coef=list(shape=3))
)
traj_from_coords <- traj_get(traj[,1], traj[,2])
[Package cylcop version 0.2.0 Index]