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
, 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
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
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
4 matches
Mail list logo