View source: R/write.RR.tables.R
write.RR.tables | R Documentation |
This function breaks up a 3-dimensional table of RR values (e.g., by demographic group, by environmental indicator, by geographic zone),
and saves data for each zone to a 2-dimensional table in a file.
Requires table in format provided by RR()
and related functions.
write.RR.tables(my.RR.table, folder = getwd())
my.RR.table |
Required RR table from function such as |
folder |
Optional directory, default is current working directory. Specifies where to save files. |
Returns the file names as a character vector, after saving them locally. Saves one file per zone, with rownames and header. Format is one demographic group per row and one environmental indicator per column, plus max per row and max per column
RR()
# RRS.REGION <- RR.table(mydat=bg, Enames=names.e,
# Dnames=c(names.d, names.d.subgroups.pct), popcolname='pop', Zcolname='REGION')
# write.RR.tables(RRS.REGION)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.