[R] xtable POSIXt

Miha Razinger miha.razinger at gmail.com
Thu Apr 14 13:19:11 CEST 2005


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




More information about the R-help mailing list