RR.table.add | R Documentation |
Merge table of Relative Risk results for some zones with table for USA overall
RR.table.add(rrs1, rrs2, zones2)
rrs1 |
First table from RR.table() |
rrs2 |
Another table from RR.table() |
zones2 |
Zones in rrs2, as vector, default is third element of dimnames(rrs2) |
Returns a new array
RR()
RRS.US <- RR.table(mydat=bg, Enames=names.e, Dnames=c(names.d, names.d.subgroups.pct),
popcolname='pop')
RRS.ST <- RR.table(mydat=bg, Enames=names.e, Dnames=c(names.d, names.d.subgroups.pct),
popcolname='pop', Zcolname='ST')
RRS <- RR.table.add(RRS.ST, RRS.US)
# RRS[ "pctlowinc", , ]
# RRS[ , , "CA"]
# RRS[ , "pm", ]
RR.table.sort(RRS)
RRS.REGION <- RR.table(mydat=bg, Enames=names.e, Dnames=c(names.d, names.d.subgroups.pct),
popcolname='pop', Zcolname='REGION')
RRS2 <- RR.table.add(RRS, RRS.REGION)
# RRS2[ , , "8"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.