kbroman / detectPVC

R package to detect PVCs in Polar H10 data
Other
0 stars 1 forks source link

plot_states fails if some states missing #12

Closed kbroman closed 1 week ago

kbroman commented 2 weeks ago

plot_states() fails with an error if some states are missing:

st <- plot_states(ad$datetime, p, pvc, bs)
 Error in data.frame(start = trig[, 1], end = trig[, 2], state = "T") :
   arguments imply differing number of rows: 0, 1