Hi I'd like to use R in epidemiology and disease surveillance. In EpiInfo you can have a script (.pgm) which calls a predefined report (.rpt), where a table is calculated and values picked from that table and placed where the author of the report wants them, with text around those values. (Please see example below.) I've looked at manuals, faq, mail-search and google. The closest is an "R Report Generator" email that looked as if it wasn't followed after a couple of years. ##The script might have something like this: read.epiinfo("oswego.rec") report("oswego.rpt", output="oswego.txt") ##The predefined report might have this: #{ill} Exactly {"YES"} people fell ill, and {"NO"} people didn't. We don't know about the remaining [({}-{"YES"}-{"NO"})*100/{}] percent. #{icecream ill} We are specifically interested in the number of people who chose vanilla and didn't fall ill (all {"VANILLA", "YES"} of them). Is there anyway to do this with R? Any direction I should look into? Thanks in advance. Lucas
Hi, Lucas You should try Sweave in the 'tools' package (see http://www.ci.tuwien.ac.at/~leisch/Sweave/). You will have to get a TeX/LaTeX distribution and learn a little of LaTeX but it is worth the effort. I frequently use R with Sweave on EpiData files (http://www.epidata.dk/) with great success. Hope it helps. Christophe -- Christophe DECLERCQ, MD Observatoire R?gional de la Sant? Nord-Pas-de-Calais 13, rue Faidherbe 59046 LILLE Cedex FRANCE Phone +33 3 20 15 49 24 Fax +33 3 20 55 92 30 E-mail c.declercq at orsnpdc.org> -----Message d'origine----- > De : r-help-bounces at stat.math.ethz.ch > [mailto:r-help-bounces at stat.math.ethz.ch]De la part de Lucas Gonzalez > Santa Cruz > Envoy? : mardi 21 octobre 2003 11:55 > ? : r-help at stat.math.ethz.ch > Objet : [R] report generator a la epiinfo > > > Hi > > I'd like to use R in epidemiology and disease surveillance. > > In EpiInfo you can have a script (.pgm) which calls a predefined report > (.rpt), where a table is calculated and values picked from that table > and placed where the author of the report wants them, with text around > those values. (Please see example below.) > > I've looked at manuals, faq, mail-search and google. The closest is an > "R Report Generator" email that looked as if it wasn't followed after a > couple of years. > > ##The script might have something like this: > read.epiinfo("oswego.rec") > report("oswego.rpt", output="oswego.txt") > > ##The predefined report might have this: > #{ill} > Exactly {"YES"} people fell ill, and {"NO"} people didn't. > We don't know about the remaining [({}-{"YES"}-{"NO"})*100/{}] percent. > #{icecream ill} > We are specifically interested in the number of people who chose vanilla > and didn't fall ill (all {"VANILLA", "YES"} of them). > > Is there anyway to do this with R? Any direction I should look into? > > Thanks in advance. > > Lucas > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
Lucas Gonzalez Santa Cruz wrote:>Hi > >I'd like to use R in epidemiology and disease surveillance. > >In EpiInfo you can have a script (.pgm) which calls a predefined report >(.rpt), where a table is calculated and values picked from that table >and placed where the author of the report wants them, with text around >those values. (Please see example below.) > >I've looked at manuals, faq, mail-search and google. The closest is an >"R Report Generator" email that looked as if it wasn't followed after a >couple of years. > >##The script might have something like this: >read.epiinfo("oswego.rec") >report("oswego.rpt", output="oswego.txt") > >##The predefined report might have this: >#{ill} >Exactly {"YES"} people fell ill, and {"NO"} people didn't. >We don't know about the remaining [({}-{"YES"}-{"NO"})*100/{}] percent. >#{icecream ill} >We are specifically interested in the number of people who chose vanilla >and didn't fall ill (all {"VANILLA", "YES"} of them). > >Is there anyway to do this with R? Any direction I should look into? > >Thanks in advance. > >Lucas > >______________________________________________ >R-help at stat.math.ethz.ch mailing list >https://www.stat.math.ethz.ch/mailman/listinfo/r-help > >One way is to use Sweave, another one is given by my R function ff. ff allows you to substitute expressions by evaluated results in a raw report. See: http://www.wiwi.uni-bielefeld.de/~wolf/software/R-wtools/formfill/ff.html or http://www.wiwi.uni-bielefeld.de/~wolf/software/R-wtools/formfill/ff.rd Peter Wolf