View source: R/simulate_trajectory.R
traj_get | R Documentation |
The function calculates step lengths and turn angles from x- and y-coordinates and calculates pseudo-observations from those step lengths and turn angles.
traj_get(x_coords, y_coords)
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. |
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.
traj_sim()
.
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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.