Skip to contents

Mostly meant for internal use but available nevertheless.

Usage

quick_separate_trajectories(obj_name, max_frame_gap = 1, ...)

Arguments

obj_name

The input viewr object; a tibble or data.frame with attribute pathviewr_steps that includes "viewr"

max_frame_gap

Unlike the corresponding parameter in separate_trajectories, must be a single numeric here.

...

Additional arguments passed to/from other pathviewr functions

Value

A viewr object (tibble or data.frame with attribute pathviewr_steps that includes "viewr") in which a new column file_sub_traj is added, which labels trajectories within the data by concatenating file name, subject name, and a trajectory number (all separated by underscores).

Details

This function is designed to separate rows of data into separately labeled trajectories.

The max_frame_gap parameter determines how trajectories will be separated. max_frame_gap defines the largest permissible gap in data before a new trajectory is forced to be defined. In this function, only a single numeric can be supplied to this parameter (unlike the case in separate_trajectories).

Author

Vikram B. Baliga

Examples

## This function is not recommended for general use.
## See separate_trajectories() instead