Hi,
I was hoping someone could help me convert difftime to numeric.
Here is a sample dataset:
ride_idt, rip_duration
a1, 625 secs
a2, 244 secs
a3, 80 secs
a4, 702 secs
a5, 43 secs
a6, 3227 secs
Here is the class for trip_duration: $ trip_duration: 'difftime' num 625 244 80 702 ...
..- attr(*, "units")= chr "secs"
My goal is to convert that "625 secs" into the number 625.
Thanks!