secs.fmt {tlocoh} | R Documentation |
Returns a formated version of a time value
secs.fmt(secsVal, round.pos = 1)
secsVal |
a time value (in seconds) |
round.pos |
The number of decimal places in the formatted string |
a character string
This function only works with a single value. To format a multiple time values stored in a vector, use sapply or lapply
Based on the value of secsVal, the formatted version will be converted to days, hours, minutes, or seconds