Skip to content

puzzled by math on date-time objects

1 message · Denis Chabot

#
Hi Phil,

Well thank you very much for this detailed explanation. It will help  
me when summarizing information over periods of time using either  
summarize (Hmisc) or summaryBy (doBy). Until now, doing so resulted in  
"mean" time for each "group" being transformed as a number of seconds,  
as you explain below. But both these functions do not put it back in a  
POSIX date-time object. I tried to do so by using "as.POSIXct()" but  
this failed because I did not provide a reference. From now on I'll  
try the structure command you used below.

Denis
Le 09-03-10 ? 19:04, Phil Spector a ?crit :