powered by
This is the inverse of TrajSplit.
TrajSplit
TrajMerge(parts)
A single trajectory.
A list containing one or more trajectories. The trajectories are concatenated together in order.
trj <- TrajGenerate(n = 20) ntrj <- TrajMerge(TrajSplit(trj, c(3, 9, 20))) print(all(trj == ntrj)) ## [1] TRUE
Run the code above in your browser using DataLab