Thanks for your wonderful package! I have a question though:
I would like to produce latex tables using export2latex. I assigned Hmisc-variable labels so that I don't have to edit the variable names for each table, separately. The labels include latex math mode in $$ and export2latex unfortunately compiles the sign "$" as "\$". Here is a little example:
#####################################################
# assigning Hmisc label includinc math mode in $$
library(Hmisc)
label(mtcars$mpg) <- "[$\\frac{miles}{gallon}$]"
# descriptive table of mpg by am
library(compareGroups)
tab <- createTable(
compareGroups(data = mtcars,
am ~ mpg)
)
# in createTable, the variable name looks fine
tab
# when exported to latex, a \ is inserted before each $
export2latex(tab)
#####################################################
Is there a way out?
Thank you so much for your help!