[R] summary() doesn't work with Date class objects

Scott Waichler scott.waichler at pnl.gov
Tue Jul 13 18:57:54 CEST 2004


The handy function summary() doesn't work correctly with Date class
objects:

> R.version.string
[1] "R version 1.9.1, 2004-06-21"
> b <- as.Date(c("2002-12-26", "2002-12-27", "2002-12-28", "2002-12-29", "2002-12-30"))
> b
[1] "2002-12-26" "2002-12-27" "2002-12-28" "2002-12-29" "2002-12-30"
> summary(b)
        Min.      1st Qu.       Median         Mean      3rd Qu.         Max.
"2002-12-29" "2002-12-29" "2002-12-29" "2002-12-29" "2002-12-29" "2002-12-29"

Scott Waichler
Pacific Northwest National Laboratory
Richland, WA   99352    USA
scott.waichler at pnl.gov




More information about the R-help mailing list