Hello R-Helpers!

I have a vector of times of events that time is fraction of 1, because it
was calculated in excel. Are there some way to format a period greater than
24h in a format like excel [h]:mm:ss?

Exemple:

test = c(1.424708, 0.028674)

> chron (times. = test [2], format = "h:m:S")
[1] 00:41:17

> chron (times. = test, format = "h:m:S")
Time in days:
[1] 1.424708 0.028674

I need an output like:

*34:11:35* 0:41:17

Thanks in advanced,

Raoni
-- 
Raoni Rosa Rodrigues
Research Associate of Fish Transposition Center CTPeixes
Universidade Federal de Minas Gerais - UFMG
Brasil
rodrigues.ra...@gmail.com

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to