I have a data frame in R which, unfortunately, contains lines in it containing dollar signs. When the latex() function from the Hmisc package converts this data frame to a LaTeX table, dollar signs are not escaped. This makes LaTeX incompatible. Is there a way in Hmisc to avoid dollar signs when formatting values ββfrom a data frame?
I cannot run a search and replace all dollar signs after that, because Hmisc itself adds dollar signs for empty cells.
Minimal example:
> latex("test$test",file="")
source share