atorus-research / Tplyr

https://atorus-research.github.io/Tplyr/
Other
95 stars 16 forks source link

Don't remove units attribute of difftime when cleaning data on pre-process #184

Open mstackhouse opened 2 months ago

mstackhouse commented 2 months ago
library(lubridate)

x <- ymd("2024-01-01") - ymd("2024-01-02")
attributes(x)

https://github.com/atorus-research/Tplyr/blob/1fa6c4cd42da3434ee5118a2f61aed61b947dd48/R/prebuild.R#L13

https://github.com/atorus-research/Tplyr/blob/1fa6c4cd42da3434ee5118a2f61aed61b947dd48/R/utils.R#L260