[R] report generator a la epiinfo

Lucas Gonzalez Santa Cruz lucas.gonzalez at canarias.org
Tue Oct 21 12:55:09 CEST 2003


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




More information about the R-help mailing list