0

I tried this code but it returns NA values:

a %>% 
  mutate(hms=seconds_to_period("duration"))

I had obtained "duration" in seconds by subtracting start_date and end_date in the dataframe.

user438383
  • 5,716
  • 8
  • 28
  • 43
  • Welcome. Please share a reproducible example of your data using ``dput(a)`` - it'll make it much easier for others to help you. Thanks. – user438383 Jun 27 '21 at 16:29
  • Try without the quotation. – Phil Jun 27 '21 at 16:32
  • Please refer [this websit](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) to post a reproducible example. – zhiwei li Jun 28 '21 at 03:01

0 Answers0