write.RR.tables: Save RR tables to disk, one per zone.

View source: R/write.RR.tables.R

write.RR.tablesR Documentation

Save RR tables to disk, one per zone.

Description

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.

Usage

write.RR.tables(my.RR.table, folder = getwd())

Arguments

my.RR.table

Required RR table from function such as RR()

folder

Optional directory, default is current working directory. Specifies where to save files.

Value

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

See Also

RR()

Examples

  # 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)

ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.