Re: [R] Math characters in column heading using latex() in Hmisc

2011-03-14 Thread christiaan pauw
Thank you Ista. It worked On 14 March 2011 14:36, Ista Zahn wrote: > Hi Christain, > You do not give us a reproducible example, nor do yo tell us how you > are creating the table. The following works fine for me: > > dat <- data.frame(x1=1, x2=2, x3=3, x4=4) > names(dat) <- c("$\\sum_{i}\\sum_

Re: [R] Math characters in column heading using latex() in Hmisc

2011-03-14 Thread Ista Zahn
Hi Christain, You do not give us a reproducible example, nor do yo tell us how you are creating the table. The following works fine for me: dat <- data.frame(x1=1, x2=2, x3=3, x4=4) names(dat) <- c("$\\sum_{i}\\sum_{j}C_{P,i,j,y}\\times\\mathit{FC}_{i}$", "$XU_{alt,y}$","$n$","$\\bar{C}_{P,y}$")

[R] Math characters in column heading using latex() in Hmisc

2011-03-14 Thread christiaan pauw
Hi Everybody I want to print a latex table containing math characters in the column heading These are the formulae I want to use as column headings. It prints OK from TeX $\sum_{i}\sum_{j}C_{P,i,j,y}\times\mathit{FC}_{i}$, $XU_{alt,y}$, $n$, $\bar{C}_{P,y}$ My plan was to create a character vec