I'm a new R user and just joined the community. I am a problem which I believe I can get help from here.
I am working on a set of data file, about 12 excel files having similar datasets and data types. Each data files contain columns, 5 of which has character data type, 1 integer, and the last, time (37:30:55) data type in excel.
I have to upload all of these files onto R, to further my analysis. That means, I have to convert these into CSV format. Once I upload the converted CSV files, 2 of the files have the time data type changed to character which does affect my analysis progression.
I have tried to resave my data.frames with the correct data format, I keep getting the same problem.
So, 2 files convert 37:30:55 to "37:30:55" What do the other 10 convert it to? What typeof() do you want it to be? If it's a duration, see the {lubridate} package and follow the link there to the explainer on dates and times in R.
Shifting focus from how to what may help with f(x) = y:
x is what is at hand y is what is sought f is the function or chain of functions to convert x to y
Here x is an Excel spreadsheet imported to a data.frame object, one variable of which is a vectortypeofcharacter consisting of strings in the form 37:30:55.
Assume y is the number of seconds represented by 37 hours, 30 minutes and 55 seconds, or 14455 seconds, which is typeof numeric, which is wanted in a vector.