From a set of grouped candidate peaks restricted to the wake period, selects the first peak occurring after wake onset that satisfies the validity conditions applied upstream.
Arguments
- peaks
A data frame of grouped peaks, as returned by
group_peaks().- wake_time
POSIXct scalar, timestamp of wake onset.