[R] odfTable: how to escape <
Kuhn, Max
Max.Kuhn at pfizer.com
Mon Nov 27 15:29:10 CET 2006
Francesco,
odfTable writes out a table in xml format directly into an xml file. The
issues is that the characters "<" and ">" (among others) have to be
converted to ">" and "<".
I will build a new version where this happens automatically. In the
meantime, you should be able to use the colnames argument of odfTable
and odfTranslate to convert the column headings:
> odfTranslate("these need to be fixed: < and >", toR = FALSE)
[1] "these need to be fixed: < and >"
Max
-----Original Message-----
From: r-help-bounces at stat.math.ethz.ch
[mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Francesco Cernuto
Sent: Friday, November 24, 2006 10:06 AM
To: r-help at stat.math.ethz.ch
Subject: [R] odfTable: how to escape <
Dear All,
I'm appreciating odfWeave as a nice reporting tool, but I had some pain
in producing tables with odfTable command
where the first column began with < or > such as in age class heading,
for example:
<35
35-39
40-49
50-50
>60
In this case, to avoid a content.xml error, I had to change <35 in less
than 35 and > 60 in over 60.
Anyone knows how to escape those characters while producing a table in R
or in a document chunk?
Thanks in advance,
Francesco Cernuto
______________________________________________
R-help at stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
----------------------------------------------------------------------
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
More information about the R-help
mailing list