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 vector with these and later rbind the
values to them. When I create the vector like:

Season=c("$\sum_{i}\sum_{j}C_{P,i,j,y}\times\mathit{FC}_{i}$","$XU_{alt,y}$"
,"$n$","$\bar{C}_{P,y}$")

I get the error message:

'\s' is an unrecognized escape in character string starting

double backslashes doesn't give an error but doesn't work in Tex
"$\\sum_{i}\\sum_{j}C_{P,i,j,y}\\times\\mathit{FC}_{i}$"

Session Info below

Thanks in advance
Christiaan

> sessionInfo()
R version 2.11.1 (2010-05-31)
x86_64-apple-darwin9.8.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] splines   grid      stats     graphics  grDevices utils     datasets
 methods   base

other attached packages:
 [1] TeachingDemos_2.6 chron_2.3-35      reporttools_1.0.5 xtable_1.5-6
 doBy_4.0.6        Hmisc_3.8-0       survival_2.35-8
 [8] gdata_2.8.0       prettyR_1.8-1     reshape_0.8.3     plyr_1.2.1
 proto_0.3-8

loaded via a namespace (and not attached):
[1] cluster_1.12.3     ggplot2_0.8.8      gtools_2.6.2       lattice_0.18-8
    Matrix_0.999375-39 tools_2.11.1

	[[alternative HTML version deleted]]

