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).
# S3 method for trajectory
length(x)get_n_activities(x)
the trajectory object.
Returns a non-negative integer of length 1.