Description Usage Arguments Value Author(s) See Also Examples
Converts a time in seconds (or an object of class 'proc_time' as returned
by system.time) to a matrix of hours, minutes, seconds, or, if
char > 0
, a character string with time in hrs, mins, secs.
1 | hms(x, char = 0)
|
x |
Either a vector of times in seconds, or a (single) proc_time object. |
char |
Controls the type of output; see Value. |
If char == 0, a matrix with named columns for hours, mins, secs; the matrix may have only one row.
If char == 1, a vector of strings of the form "6 mins 20 secs".
If char == 2, a vector of strings of the form "00:06:20".
Mike Meredith, 10 Nov 2008
See also proc.time
and system.time
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.