View source: R/annotate_waveforms.R
add_time_since_event | R Documentation |
Index is the time since the most recent occurrence of some event e.g. QRS complex
add_time_since_event( data, time_event, time_col = 1, prefix = "ann", incl_prev_lengths = FALSE )
data |
A data frame with at least a time column |
time_event |
A vector of time stamps for some annotation |
time_col |
Index or name of time column |
prefix |
Prefix to new columns |
incl_prev_lengths |
Include length of previous 3 cycles as variables |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.