Wrong QPS in Sankey Diagram
ts
obtained via API is a character
, difftime
function for Sankey Diagram rounds ts
to dates, not hours. This makes timeslot_len
smaller (-23 comparing to expected value). We need to convert ts
to a datetime using lubridate::as_datetime
.