[R] Latex Table Help on R

Mark Difford mark_difford at yahoo.co.uk
Thu Jul 21 09:55:02 CEST 2011


On Jul 21, 2011 Jim Silverton wrote:

> However, I would like the standard deviations under the means in brackets. 
> Can anyone check this code to see how this can be adjusted?

Jim,

You need to use "underset," a LaTeX command. The bare-bones call is
$\underset{}{}$, where the underset value goes in the first curly and your
main value goes in the second curly (i.e. is typeset above the underset).

I don't use xtable but rather use Ron Harrell's functions in Hmisc package,
then pass it through his latex() function, so can't take you further.

##
paste('$\\underset','{',data$SDs,'}','{',data$means,'}$', sep="")

Hope this gets you going.

Regards, Mark.

-----
Mark Difford (Ph.D.)
Research Associate
Botany Department
Nelson Mandela Metropolitan University
Port Elizabeth, South Africa
--
View this message in context: http://r.789695.n4.nabble.com/Latex-Table-Help-on-R-tp3682951p3683038.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list