smush_rows: Average rows by a specified amount of time.

View source: R/smush_rows.R

smush_rowsR Documentation

Average rows by a specified amount of time.

Description

Average rows by a specified amount of time, e.g., 5 frames, 10 frame Be aware that this will remove the following variables: frame, timestamp, confidence, and success.

Usage

smush_rows(dat, id_num, smush)

Arguments

dat

Dataframe.

id_num

Your participant identifier. Defaults to first column in the dataframe.

smush

To what extent do you want to average rows together? For example, if you specify 10, then each chunk of 10 rows will be averaged together. Keep in mind that each row is 1/3 of a second. Defaults to 10.


jrcalabrese/faceup documentation built on May 16, 2022, 3:14 p.m.