title: How to convert a column of character type of minutes and seconds to time?
body: <p>I'm trying to convert a column of character to time. The column has observations in only minutes and seconds. </p>
  
  <p>The dataset I try it on is this:</p>
  
  <pre><code>data &lt;- data.frame(
    time = c("1:40", "1:55", "3:00", "2:16"),
            stringsAsFactors = FALSE
  )
  
  data
  
    time
  1 1:40
  2 1:55
  3 3:00
  4 2:16
  </code></pre>
  
  <p>I have checked other questions about converting character to time on here, but haven't found a solution to my problem. </p>
  
  <p>The output I want is this:</p>
  
  <pre><code>  time
  1 00:01:40
  2 00:01:55
  3 00:03:00
  4 00:02:16
  </code></pre>