Re: [R] Backslash \ in string

2010-07-15 Thread Claudia Beleites
Jannis, You are right, it does not seem to matter. When the R string contains two \\, xtable prints it as only one \. I should have looked into the Latex output before posting! '\\' is just _one_ character in R: > nchar ("\\") [1] 1 Just like '\n' etc. It is just the `print`ed (as opposed

Re: [R] Backslash \ in string

2010-07-15 Thread Jannis
, 15.7.2010: > Von: Erik Iverson > Betreff: Re: [R] Backslash \ in string > An: "Jannis" > CC: r-help@r-project.org > Datum: Donnerstag, 15. Juli, 2010 13:09 Uhr > On 07/15/2010 08:02 AM, Jannis > wrote: > > Dear R community, > > > > > > is there

Re: [R] Backslash \ in string

2010-07-15 Thread Erik Iverson
On 07/15/2010 08:02 AM, Jannis wrote: Dear R community, is there any way to include a backslash in a charakter string without meaning some escape sequence? E.g. i need a string like: a<- '\hline' Error: '\h' is an unrecognized escape in character string starting "\h" to include some latex c

[R] Backslash \ in string

2010-07-15 Thread Jannis
Dear R community, is there any way to include a backslash in a charakter string without meaning some escape sequence? E.g. i need a string like: a <- '\hline' Error: '\h' is an unrecognized escape in character string starting "\h" to include some latex code in a xtable object, but I only man