Skip to content
Prev 29554 / 63424 Next

sapply(Date, is.numeric)

I've now committed fixes in R-patched and R-devel.

There is one consequence: data.matrix() was testing for numeric columns by 
unlist(lapply(x, is.numeric)) and so incorrectly treating Date and POSIXct 
columns as numeric (which we had decided they were not).  This affects 
package gvlma.

data.matrix() is now working as documented, but as we have an exception 
for factors, do we also want exceptions for Date and POSIXct?
On Wed, 30 Jul 2008, Martin Maechler wrote: