Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upduration() error when units repeats #778
Comments
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
|
Even more minimal reprex library(lubridate, warn.conflicts = FALSE)
duration(1:2, c("seconds", "minutes"))
#> [1] "1s" "120s (~2 minutes)"
duration(1:2, c("seconds", "seconds"))
#> Error: Invalid unit name: secondsCreated on 2019-11-20 by the reprex package (v0.3.0) |
Created on 2019-07-02 by the reprex package (v0.3.0)
It would be great if the vectorial form would always work.
PS: why does year works when the doc says "Units larger than weeks are not used due to their variability."...? I am happy it does though.
Alex