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


trajr documentation built on May 29, 2024, 11:52 a.m.