make_trajectory {navigation} | R Documentation |
Construct a trajectory
object
Description
Create a trajectory
object from simple matrix input.
Usage
make_trajectory(
data,
system = "ellipsoidal",
start_time = NULL,
name = NULL,
...
)
Arguments
data |
A multiple-column |
system |
A |
start_time |
A |
name |
A |
... |
Additional arguments. |
Value
An object of class trajectory
.
Author(s)
Davide Cucci, Lionel Voirol, Mehran Khaghani, Stéphane Guerrier
Examples
n <- 100
dat <- cbind(
seq(from = 0, to = 60 * 60, length.out = n),
46.204391 * pi / 180 + cumsum(rnorm(n)) / 10^5,
6.143158 * pi / 180 + cumsum(rnorm(n)) / 10^5,
375 + cumsum(rnorm(n))
)
traj <- make_trajectory(data = dat, name = "My cool data")
traj
plot(traj)