'compute SD and VAR for a time variable

How I am trying to compute SD and VAR for a difference in start and end times, its a time-variable basically, I get a NA when I run:

hms::as_hms(var(hms::as_hms(samp.trips$ride_length))) NA

how can I get around this?

Thank you in advance.

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source