我正在做一个应用程序来分析时间序列数据与闪亮。 我看起来就像工作中的数据:显示POSIXt对象与闪亮renderTable
V1 V2
1 2013-02-04 18:15:00 -4.746
2 2013-02-04 18:20:00 -4.745
3 2013-02-04 18:25:00 -4.746
4 2013-02-04 18:30:00 -4.747
5 2013-02-04 18:35:00 -4.747
6 2013-02-04 18:40:00 -4.747
我想在一个表中绘制数据:
output$view <- renderTable({
head(datasubset(),
n=nrow(datasubset()))
})
否则我得到一个错误运行闪亮时:
Error in Math.POSIXt(x + ifelse(x == 0, 1, 0)) :
'abs' not defined for "POSIXt" objects
有没有人有这个错误的解决方案?
更新:错误是由xtable引起的: renderTable使用xtable()生成输出,并且它看起来像xtable在一般日期中播放不好。
的问题已经在这里提交温斯顿·张:https://github.com/rstudio/shiny/issues/129
一种解决方法,请访问:R: xtable and dates
LO像一个错误!试试这个,'datasubset $ V1 < - as.character(datasubset $ V1)' – agstudy 2013-03-19 13:58:46