View source: R/utility_functions.R
set_traj_frametime | R Documentation |
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.
set_traj_frametime(obj_name)
obj_name |
The input viewr object; a tibble or data.frame with attribute
|
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.
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).
Vikram B. Baliga
Other utility functions:
clean_by_span()
,
insert_treatments()
,
remove_duplicate_frames()
,
remove_vel_anomalies()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.