Skip to content

summary() with argument of class difftime (PR#6780)

2 messages · J. R. M. Hosking, Brian Ripley

#
Full_Name: J. R. M. Hosking
Version: 1.9.0
OS: Windows 2000
Submission from: (NULL) (129.34.20.23)
difftime(units:days)(1) 394
Error in Summary.difftime(..., na.rm = na.rm) : 
        sum not defined for difftime objects



When x is of class difftime, either sum(x) should be permitted or summary(x)
should not try to compute the mean.

(R 1.9.0, Windows binary from CRAN)
#
Where does it say that summary() can be applies to difftime objects?
On Fri, 16 Apr 2004 hosking@watson.ibm.com wrote: