Learn R Programming

simmer (version 3.6.0)

length: Number of activities in a trajectory

Description

Get the number of activities in a trajectory. length returns the number of first-level activities (sub-trajectories not included). get_n_activities returns the total number of activities (sub-trajectories included).

Usage

"length"(x)
get_n_activities(x)

Arguments

x
the trajectory object.

Value

Returns a non-negative integer of length 1.

See Also

[.trajectory, [[.trajectory, join.