Re: [R] xtable with conditional formatting using \textcolor

2011-09-06 Thread Brian Diggs
On 9/6/2011 4:01 AM, eldor ado wrote: I have a related question: dataframe df contains values like df .. "\\textbf{ 0.644 }" .. and the line print( xtable(df , sanitize.text.function = function(x){x})) sanitize.text.function is an argument of print.xtable, not xtable. Try print( xta

Re: [R] xtable with conditional formatting using \textcolor

2011-09-06 Thread eldor ado
I have a related question: dataframe df contains values like >df .. "\\textbf{ 0.644 }" .. and the line > print( xtable(df , sanitize.text.function = function(x){x})) converts them to .. & $\backslash$textbf\{ 0.644 \} & .. escaping both double backslashes and brackes. maybe somebody her

Re: [R] xtable with conditional formatting using \textcolor

2011-06-01 Thread Walmes Zeviani
Marc, Thank you very much. You gave exactly what I wanted. Bests. Walmes. == Walmes Marques Zeviani LEG (Laboratório de Estatística e Geoinformação, 25.450418 S, 49.231759 W) Departamento de Estatística - Universidade Federa

Re: [R] xtable with conditional formatting using \textcolor

2011-06-01 Thread Marc Schwartz
On Jun 1, 2011, at 1:33 PM, Walmes Zeviani wrote: > Hello list, > > I'm doing a table with scores and I want include colors to represent status > of an individual. I'm using sweave <>= and xtable but I can't > get a result I want. My attemps are > > #-

[R] xtable with conditional formatting using \textcolor

2011-06-01 Thread Walmes Zeviani
Hello list, I'm doing a table with scores and I want include colors to represent status of an individual. I'm using sweave <>= and xtable but I can't get a result I want. My attemps are #- # code R da <- data.frame(id=le