You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
x <- c("09:10:01", "09:10:02", "09:10:03", "Collided at 9:20:04 pm")
hms(x)
# [1] 9 hours, 10 minutes and 1 second
# [2] 9 hours, 10 minutes and 2 seconds
# [3] 9 hours, 10 minutes and 3 seconds
lacks the last output line. AND if you run the example you will get "9 hours, 20 minutes and 4 seconds" for the missing element. However, the example is quite MISLEADING, due to the presence of "pm" in the last element. One would think that hms() should return "21 hours..." for that element instead of "9 hours..."
The text was updated successfully, but these errors were encountered:
Thanks for pointing the omission; hms returns a period and parses the numbers as is, regardless of the semantic meaning of the sentence (an instance in the example). I have changed this example into a more intuitive "Finished in 9 hours, 20 min and 4 seconds".
This example in man/hms.Rd
lacks the last output line. AND if you run the example you will get "9 hours, 20 minutes and 4 seconds" for the missing element. However, the example is quite MISLEADING, due to the presence of "pm" in the last element. One would think that hms() should return "21 hours..." for that element instead of "9 hours..."
The text was updated successfully, but these errors were encountered: