I'm working in the tidyverse and I have a four column tibble, which looks like this:
+-------------------+--------------------+--------------------+-------------+
| application <chr> | start<chr> | end<chr> | usage<chr> |
+-------------------+--------------------+--------------------+-------------+
| reddit is fun | 01-Mar-19 17:37:26 | 01-Mar-19 17:37:36 | 10 sec |
| Maps | 01-Mar-19 17:37:38 | 01-Mar-19 17:41:1 | 3 min |
| Clock | 01-Mar-19 17:41:10 | 01-Mar-19 17:41:21 | 11 sec |
+-------------------+--------------------+--------------------+-------------+
My intent is to convert any value listed in minutes in the usage column, to seconds. I'm able to do this in excel, though I'd rather keep excel out of the equation!
My thought is that I may need to use the extract function, using regex for the "# min" values, separate the "#" and "min", do the conversion to seconds and then combine the two columns, both now in seconds, with paste.
Am I on the right track? Thank you!