On Sep 21, 2009, at 6:13 PM, Martin Batholdy wrote:


Am 21.09.2009 um 23:59 schrieb Rolf Turner:


On 22/09/2009, at 9:52 AM, Martin Batholdy wrote:

I use xtable to convert data.frames to html tables.
But when I use the print-command I always get the whole output printed
even if I just want to save the html table into a variable;

table <- print(xtable(CERAT), type="html")


How can I suppress that output is printed?

If you don't want it printed, then why the <expletive deleted>
are you (explicitly!) using print???   Words fail me!!!

        cheers,

                Rolf Turner


Because I don't get html code when I only use xtable(xy)

One further alternative that is quieter is the html function in Hmisc, however this produces a browser page display rather than an R console output. It does not output h to the console upon creation

data(tli)
h <- html(tli)
h    # the print.html method is part of Hmisc

--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT

______________________________________________
R-help@r-project.org 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.

Reply via email to