[R] report generator a la epiinfo

Peter Wolf s-plus at wiwi.uni-bielefeld.de
Tue Oct 21 18:37:41 CEST 2003


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




More information about the R-help mailing list