Redefine frames and time stamps on a per-trajectory basis
Source:R/utility_functions.R
set_traj_frametime.Rd
After a data set has been separated into trajectories, find the earliest frame in each trajectory and set the corresponding time to 0. All subsequent time_sec stamps are computed according to successive frame numbering.
Value
A viewr object (tibble or data.frame with attribute
pathviewr_steps
. New columns include traj_time (the
trajectory-specific time values) and traj_frame (the trajectory-specific
frame numbering).
Details
The separate_trajectories() and get_full_trajectories() must be run prior to use. The initial traj_time and traj_frame values are set to 0 within each trajectory.
See also
Other utility functions:
clean_by_span()
,
insert_treatments()
,
remove_duplicate_frames()
,
remove_vel_anomalies()