TrajMerge: Combine multiple trajectories into a single whole trajectory

View source: R/simulate.R

TrajMergeR 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

TrajSplit

Examples

trj <- TrajGenerate(n = 20)
ntrj <- TrajMerge(TrajSplit(trj, c(3, 9, 20)))
print(all(trj == ntrj))
## [1] TRUE


JimMcL/trajr documentation built on July 23, 2024, 2:06 a.m.