Skip to contents

Duration for which at least one sensor exceeds threshold.

Usage

pr_calc_contact_time(trial, threshold = 0)

Arguments

trial

A pr_trial object.

threshold

Numeric. Default 0.

Value

Numeric scalar (s).

Examples

trial <- pr_example_trial("platform")
pr_calc_contact_time(trial, threshold = 5)
#> [1] 1.6