I am trying to make some reports with Rmarkdown, and one of the things I would like to display in nice, formatted text is results of the summaryDefault type object. I have tried using Kable and XTables, but neither seems to be up to the task.
With Kable, I get this:
> kable(summary(as.vector(matrix)))
Error in provideDimnames(x, sep = sep, base = base) :
'dimnames' applied to non-array
I found a thread saying that this was an issue that had been fixed, but I am using Knitr 1.17, which afik is the current version.
I have also tried the Xtable package, but:
> xtable(summary(as.vector(matrix)))
Error in xtable.table(summary(as.vector(mads_exons))) :
xtable.table is not implemented for tables of > 2 dimensions
Is it possible to do this with either of these packages, or some other package that I'm not aware of?