[R] xtable POSIXt

From: Miha Razinger <miha.razinger_at_gmail.com>
Date: Thu 14 Apr 2005 - 21:19:11 EST


Hi,

I was trying like to print out data frame with POSIXct column in html format using xtable package, but I got error message when trying to print the table. Here is example:

  aaa<-data.frame(as.POSIXct(strptime('03 2005', '%d %Y')),0)   aaa.tab<-xtable(aaa)
  print(aaa.tab)

  Error in Math.POSIXt(x + ifelse(x == 0, 1, 0)) :

          abs not defined for POSIXt objects

I was able to get around the problem with converting column back to string but still I would like to know is it a bug or I was doing something wrong.

thanks,

-- 
Miha Razinger
Environmental Agency of Slovenia
Office of Meteorology

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Apr 14 21:25:21 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:10 EST