tables-package

Simple example of using tables + knitr for latex

不羁的心 提交于 2019-12-01 08:54:43
问题 I'm struggling with a tables package, all the examples in the packable docs are so complex and none of them works for me with knitr and latex. Could somebody help be out and display a simple table with some formulas and multiline labels in the header? Something like this: df <- data.frame(matrix(1:9, nrow = 3)) colnames(df) <- c("first column", "second \\frac{1}{2}", "third column first line \\ second line") Thank you in advance 回答1: It is possible to create multi-line headers for tables in