Re: [R] turning off escape sequences for a string

2009-06-16 Thread Allan Engelhardt
Backslashes in character strings need to be doubled. Your "\b" is a backspace. "\\" is a backslash. http://cran.r-project.org/doc/manuals/R-lang.html#Literal-constants On 16/06/09 17:12, Stephen J. Barr wrote: > Hello, > > I would like to create a matrix with one of the columns named > $\del

[R] turning off escape sequences for a string

2009-06-16 Thread Stephen J. Barr
Hello, I would like to create a matrix with one of the columns named $\delta$. I have also created columns $\beta_1$ , $\beta_2$, etc. However, it seems like \d is an escape sequence which gets automatically removed. (Using these names such that they work right in xtable -> latex) colnames(simple