title: Work with durations over 24 hours in R
body: <p>I have a series of duration that range up to 118 hours in a format like so "118:34:42" where 118 is hours, 34 is minutes, and 42 is seconds. Output should be a number of seconds.</p>
  
  <p>I would like to convert this to some kind of time type in R, but most of the libraries I've looked at want to add a date (lubridate, zoo, xts), or return "NA" due to the hours being beyond a 24 hour range. I could parse the string and return a number of seconds, but I'm wondering if there's a faster way.</p>
  
  <p>I'm slightly new to R (maybe 3 months in to working with this). </p>
  
  <p>Any help figuring out how to deal with this would be appreciated. </p>
  
  <p>Example:</p>
  
  <pre><code>    library(lubridate)
      x &lt;- c("118:34:42", "114:12:12")
      tt &lt;- hms(x)
      Error in parse_date_time(hms, orders, truncated = truncated, quiet = TRUE) : 
    No formats could be infered from the training set.
      #try another route
      w &lt;- "118:34:42"
      tt2 &lt;- hms(w)
      tt2
      #[1] NA
      z &lt;- "7:02:02"
      tt3 &lt;- hmw(z)
      tt3
      #[1] "7H 2M 2S"
  </code></pre>