As an R absolute beginner and an expert (very old) statistician and latex user, I'm interested in using R to produce AUTOMAGICALLY tables in latex format. I mean I would like to have the means to build an R procedure generating **FROM INSIDE** a table or a graph to be inserted directly into latex. I've read http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf where the author speaks of S (not R) and Latex integration via a Hmisc library which allows to make automatic, calculated tables in latex. Unfortunately this library doesn't seem to be present in R (I tried to follow the example issuing a "library(Hmisc)" and then, plainly, "library()" but nothing with the same functions appeared). Any help on how to set up that integration? And, where can I find documentation/examples on that? Thanks Vittorio
Hi! Most probably you did not install Hmisc on your system. It is not included in R-base. You find it on CRAN. (cran.r-project.org -> source for contributed packages) After installing it for your system the examples may well work. Have a nice sunday, detlef On Sun, 12 Oct 2003 09:19:12 +0200 "v\.demart\@libero\.it" <v.demart at libero.it> wrote:> As an R absolute beginner and an expert (very old) statistician and latex user, > I'm interested in using R to produce AUTOMAGICALLY tables in latex format. I > mean I would like to have the means to build an R procedure generating **FROM > INSIDE** a table or a graph to be inserted directly into latex. > I've read http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf where the > author speaks of S (not R) and Latex integration via a Hmisc library which > allows to make automatic, calculated tables in latex. > Unfortunately this library doesn't seem to be present in R (I tried to follow > the example issuing a "library(Hmisc)" and then, plainly, "library()" but > nothing with the same functions appeared). > > Any help on how to set up that integration? And, where can I find > documentation/examples on that? > > Thanks > > Vittorio > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- "The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts." Russell Detlef Steuer --- http://fawn.unibw-hamburg.de/steuer.html ***** Encrypted mail preferred *****
v.demart at libero.it schrieb:> As an R absolute beginner and an expert (very old) > statistician and latex user, I'm interested in using R to > produce AUTOMAGICALLY tables in latex format. I mean I > would like to have the means to build an R procedure > generating **FROM INSIDE** a table or a graph to be > inserted directly into latex. I've read > http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf > where the author speaks of S (not R) and Latex integration > via a Hmisc library which allows to make automatic, > calculated tables in latex. Unfortunately this library > doesn't seem to be present in R (I tried to follow the > example issuing a "library(Hmisc)" and then, plainly, > "library()" but nothing with the same functions appeared). > > Any help on how to set up that integration? And, where can > I find documentation/examples on that?A Google Groups search matches many postings, e.g. this one pan.2003.10.09.14.08.58.922000 at NIETZOLEUKskynet.be: "I don't know how well gnuplot integrates with LaTeX, but R certainly does. If you use the Sweave-package (delivered by default with R), you can put your R code right into your LaTeX document. Process your document once with R and then with LaTeX and that's it: a nice paper with the results of your analyses. If you _really_ want to speed up things, you can use R from within your favorite emacs editor (install ESS mode, i.e. emacs speaks statistics)." At the moment I don't have any further information because I'm also at the beginning of integrating R into LaTeX. But from the german newsgroup de.comp.text.tex I know, that it's possible and even easy. Reading the following document was suggested to me: http://www.ci.tuwien.ac.at/~leisch/Sweave/Sweave-manual-20020507.pdf And LaTeX-tables could really be done with library(hmisc). Maybe you have to install the hmisc-package. It isn't yet in my machine, too. How to install a package describes the FAQ (http://cran.r-project.org/doc/FAQ/R-FAQ.html): 5.2 How can add-on packages be installed? HTH Greetings, Christoph -- Christoph Bier, Dipl.Oecotroph., Email: bier at wiz.uni-kassel.de Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13
Detlef Steuer schrieb:> Hi! > > Most probably you did not install Hmisc on your system. It > is not included in R-base. You find it on CRAN. > (cran.r-project.org -> source for contributed packages) > > After installing it for your system the examples may well > work.Hi, i just tried to install Hmisc with > install.packages(Hmisc,installWithVers = true) but get the following error: Error in unique(pkgs) : Object "Hmisc" not found It searches in http://cran.r-project.org/src/contrib/PACKAGES where Hmisc *is* listed. Did *I* make a mistake or is there something else wrong? Greetings, Christoph -- Christoph Bier, Dipl.Oecotroph., Email: bier at wiz.uni-kassel.de Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13
See also http://www.analytics.washington.edu/~rossini/course/cph-statcomp/ and lab 2, for a "walk-through" example (with sample files) of using Sweave (both figures and tables get included). "v\.demart\@libero\.it" <v.demart at libero.it> writes:> As an R absolute beginner and an expert (very old) statistician and latex user, > I'm interested in using R to produce AUTOMAGICALLY tables in latex format. I > mean I would like to have the means to build an R procedure generating **FROM > INSIDE** a table or a graph to be inserted directly into latex. > I've read http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf where the > author speaks of S (not R) and Latex integration via a Hmisc library which > allows to make automatic, calculated tables in latex. > Unfortunately this library doesn't seem to be present in R (I tried to follow > the example issuing a "library(Hmisc)" and then, plainly, "library()" but > nothing with the same functions appeared). > > Any help on how to set up that integration? And, where can I find > documentation/examples on that? > > Thanks > > Vittorio > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- rossini at u.washington.edu http://www.analytics.washington.edu/ Biomedical and Health Informatics University of Washington Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable FHCRC (M/W): 206-667-7025 FAX=206-667-4812 | use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}
Prof Brian Ripley schrieb:> On Sun, 12 Oct 2003, Christoph Bier wrote:[...]>> Ok, I'll keep that in mind. But may I ask why you suggest >> leaving it out? > > > That's the wrong question: you need to say why you intend > to include it. Givne that you don't know the difference > between true and TRUE, I guess you are a naive R user and > this would be a needless complication. (Maybe 0.1% of R > users make use it.)Yes, I'm a quite new R user and yet I don't know the difference between true and TRUE. But I read on the manuals. Greetings, Christoph -- Christoph Bier, Dipl.Oecotroph., Email: bier at wiz.uni-kassel.de Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13
Whoops. Should be courses, not course, below. See also http://www.analytics.washington.edu/~rossini/course/cph-statcomp/ and lab 2, for a "walk-through" example (with sample files) of using Sweave (both figures and tables get included). "v\.demart\@libero\.it" <v.demart at libero.it> writes:> As an R absolute beginner and an expert (very old) statistician and latex user, > I'm interested in using R to produce AUTOMAGICALLY tables in latex format. I > mean I would like to have the means to build an R procedure generating **FROM > INSIDE** a table or a graph to be inserted directly into latex. > I've read http://hesweb1.med.virginia.edu/biostat/s/doc/summary.pdf where the > author speaks of S (not R) and Latex integration via a Hmisc library which > allows to make automatic, calculated tables in latex. > Unfortunately this library doesn't seem to be present in R (I tried to follow > the example issuing a "library(Hmisc)" and then, plainly, "library()" but > nothing with the same functions appeared). > > Any help on how to set up that integration? And, where can I find > documentation/examples on that? > > Thanks > > Vittorio > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- rossini at u.washington.edu http://www.analytics.washington.edu/ Biomedical and Health Informatics University of Washington Biostatistics, SCHARP/HVTN Fred Hutchinson Cancer Research Center UW (Tu/Th/F): 206-616-7630 FAX=206-543-3461 | Voicemail is unreliable FHCRC (M/W): 206-667-7025 FAX=206-667-4812 | use Email CONFIDENTIALITY NOTICE: This e-mail message and any attachme...{{dropped}}
Patrick Burns schrieb:> You may be interested in "A Guide for the Unwilling S > User" and chapter 1 of S Poetry.I already found this Guide but didn't felt addressed, because using R is my choice, so I'm not unwilling. Maybe a misestimation. Before I made the decision to migrate to R I read a book about S and S-Plus in german and some introductions found in the web. At the moment I'm waiting for "Introductory Statistics with R" by Peter Dalgaard. I hope our bookseller is "fast" enough, because I'm pressed for time. Who's not ... =)? Nevertheless thanks for the hint, I will have a look at this guide! Greetings, Christoph -- Christoph Bier, Dipl.Oecotroph., Email: bier at wiz.uni-kassel.de Universitaet Kassel, FG Oekologische Lebensmittelqualitaet und Ernaehrungskultur \\ Postfach 12 52 \\ 37202 Witzenhausen Tel.: +49 (0) 55 42 / 98 -17 21, Fax: -17 13