| pretty_time | R Documentation |
Convert seconds into a human readable format
pretty_time(seconds)
seconds |
number of seconds to prettify |
Recognises when to present as:
seconds
minutes and seconds
hours, minutes and seconds
It will show seconds until 119 seconds, then minutes until 119 minutes, then hours. It doesn't do days or higher yet, but could be adapted to do so if there's demand.
string containing the 'pretty' time
comma_sep() round_five_up() as.POSIXct()
Other prettying:
pretty_filesize(),
pretty_num(),
pretty_num_table(),
pretty_time_taken()
pretty_time(1)
pretty_time(8)
pretty_time(888)
pretty_time(88888888)
pretty_time(c(60, 2, 88, 88888888))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.