Hmisc
Hmisc copied to clipboard
Group labels with booktabs in latex
When I generate a table using the latex
function with group labels that span several columns (using the cgroup
and n.cgroup
options), the function adds extra empty columns between the groups, and \cline{}
commands that underline the group labels.
When the booktabs = TRUE
option is used, it would be great if the function did not add any extra empty columns, but instead replaced the \cline{}
commands with \cmidrule(lr){}
from the booktabs
package.
Let's deal with the first problem first. For that one please provide a simple self-contained minimal working code example that fails, and state the version of Hmisc
you are using.
I think I might have been unclear - the first part is not a failure, the package is working exactly as intended. I just wanted to propose that the functionality be changed so that the \cmidrule
command is used instead of adding empty columns between groups when using booktabs
.
Sorry about the confusion, and thank you for providing this great package!