metrumresearchgroup / mrgmisc

Miscellaneous helpers for getting work done on MetrumRG projects. Inheriting much code from PKPDmisc and metrumrg packages.
https://metrumresearchgroup.github.io/mrgmisc/
2 stars 2 forks source link

Update numeric_time #43

Closed michaelmcd18 closed 4 months ago

michaelmcd18 commented 5 months ago

@callistosp Thanks for finding this bug, I believe the function now treats negative times correctly

>   times2 <- c("3:05", "-3:05", "-11:40")
>   numeric_time(times2)
[1]   3.08  -3.08 -11.67