Skip to contents

This function splits RR intervals into the orthostatic test phases based on time thresholds.

Usage

split_rr_phases(rr_intervals, session_info, laying_time, transition_time)

Arguments

rr_intervals

A data frame containing RR interval data with a 'time' column.

session_info

Session information (currently unused). Consider removing this parameter.

laying_time

The time threshold (in the same units as the 'time' column in rr_intervals) for the laying phase.

transition_time

The duration of the transition phase (in the same units as the 'time' column in rr_intervals).

Value

A data frame with an added 'phase' column indicating the phase ("laying", "transition", or "standing").