Returns the maximum pressure across all active sensors for each frame.
Arguments
- trial
A pr_trial object.
- threshold
Numeric. Sensors at or below this value are treated as unloaded and excluded. Default
0.
Examples
trial <- pr_example_trial("insole")
pp <- pr_calc_peak_pressure(trial)
length(pp) == trial$n_frames
#> [1] TRUE