TrajMerge {trajr} | R Documentation |
Combine multiple trajectories into a single whole trajectory
Description
This is the inverse of TrajSplit
.
Usage
TrajMerge(parts)
Arguments
parts |
A list containing one or more trajectories. The trajectories are concatenated together in order. |
Value
A single trajectory.
See Also
Examples
trj <- TrajGenerate(n = 20)
ntrj <- TrajMerge(TrajSplit(trj, c(3, 9, 20)))
print(all(trj == ntrj))
## [1] TRUE
[Package trajr version 1.5.1 Index]