secs.fmt: Format a number of seconds as minutes, hours or days

Description Usage Arguments Value Note

Description

Returns a formated version of a time value

Usage

1
secs.fmt(secsVal, round.pos = 1)

Arguments

secsVal

a time value (in seconds)

round.pos

The number of decimal places in the formatted string

Value

a character string

Note

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


tlocoh documentation built on May 2, 2019, 5:27 p.m.