Currently, if you run “Convert to Numeric” on an hms column, it returns the same values regardless of the time unit. It is because the hms object always use ‘second’ for unit.
For the hours calculation, I get the correct answer when typing “as.numeric(hms_column)/(60 * 60)” or “as.numeric (hms_column)/ 60 / 60” as shown in the second image, but not “as.numeric(hms_column)/60 * 60” as the text above the second image suggests.
Thinking this syntax should apply to the Day column as well? “as.numeric(hms_column)/(60 * 60 * 24)” or “as.numeric (hms_column)/ 60 / 60/ 24”
Yes, you are right. The formula that I wrote looked weird because it conflicted with the markdown syntax. I updated my original post with your suggestion because it is more precise