I am trying to print the result of table() using knitr. My MWE:
df <- data.frame(Linha=c("A","A","A","B","B","C"), Coluna=c(1,2,1,1,2,3))
tab <- table(df)
kableExtra::kbl(tab,,format = "latex")
I get this:
With no variable names. But I would like this:
Is it possible? Thanks!