Replicate "Custom Tables" comparison in R Try to explore a "tabular" function from the "tables" package. I think it might be helpful.