SCM

[#6465] print.xtable prints dates as numerics in data.frames

View Trackers | Feature Requests | Download .csv | Monitor

Date:
2016-09-20 10:22
Priority:
3
State:
Open
Submitted by:
Sergiusz Bleja (sergiuszbleja)
Assigned to:
Nobody (None)
Product:
None
Operating System:
All
Component:
None
 
Summary:
print.xtable prints dates as numerics in data.frames

Detailed description
I'm not sure whether this is a bug of a feature request, but a feature request feels more constructive :)

A minimal reproducible example:
library(xtable)
a= data.frame(a = as.Date("2016-09-29"))
print(xtable(a))

This will print 17073.00 rather than the date. A conversion using as.character is a work around but somewhat cumbersome.

Can xtable be changed to print the above as a date rather than numeric? Can I help making this happen?

Thanks

Followup

Message
Date: 2017-01-20 17:46
Sender: Sergiusz Bleja

I've cloned the read only version github and added this change:
https://github.com/tim-group/xtable

If you want to apply the patch it's here: https://github.com/tim-group/xtable/commit/668475cbbe6a9b4aa6bb80a139392b5822be5545?diff=unified

A suggestion would be to migrate this project to github which enable collaboration more. Let me know if you would like some help with this.

Thanks
Sergiusz

Attached Files:

Changes:

No Changes Have Been Made to This Item

Thanks to:
Vienna University of Economics and Business University of Wisconsin - Madison Powered By FusionForge