I donβt know how to do this using tables::tabular , but it will be done using Hmisc::summary.formula.reverse if you have your system configured to create PDF files through latex (). I had to search the Rhelp archives to find out that the "exclude1" argument needs to be included in the latex argument list. Once you get back to the exclude1 documentation, it will appear in the latex.summary.formula.reverse usage latex.summary.formula.reverse , although I thought I was reading the help page for summary.rms :
library(Hmisc) latex(summary( v2 ~ v1, data=df, method="reverse" ,test=TRUE), exclude1=FALSE)

You can intercept latex output "along the way" if you want to insert it into a longer document by assigning output to a named file.
latex(summary( v2 ~ v1, data=df, method="reverse" ,test=TRUE), exclude1=FALSE, file="")
source share