79083870

Date: 2024-10-13 18:34:22
Score: 3
Natty:
Report link

Found a solution via the "lubricate" package from tidyverse:

co2_clean$Datetime = dmy_hms(co2_clean$Datetime)
    
co2_clean$hours = as.numeric(difftime(co2_clean$Datetime, co2_clean$Datetime[1], units = "hours"))

Still dont know what the problem is on my first approach, so if anyone could enlighten me on that I`d be very grateful!

Reasons:
  • RegEx Blacklisted phrase (2): be very grateful
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lz_umt