mkMrt: Make mortality binaries

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/mkMrt.R

Description

Gets mortality data from the Human Mortality Database http://www.mortality.org/ and puts it in the file ‘mrt.RData’.

Usage

1
 mkMrt(username,passwd,country="USA",mrtHome="~/data/usMort")

Arguments

username

Username of Human Mortality Database account.

passwd

Password of Human Mortality Database account.

country

This should probably stay at its default of USA.

mrtHome

Directory that will contain the mortality data binary. Should be writable by user.

Value

None. This function is called for its side-effect of producing ‘mrt.RData’.

Author(s)

Tom Radivoyevitch (radivot@ccf.org)

References

Barbieri M, Wilmoth JR, Shkolnikov VM, et al. Data Resource Profile: The Human Mortality Database (HMD). Int J Epidemiol. 2015;44: 1549-1556.

See Also

SEERaBomb-package,mkSEER

Examples

1
2
3
4
5
6
7
## Not run: 
library(SEERaBomb)
mkMrt("username", "password")# sub in your personal account info
load("~/data/usMort/mrt.RData")
head(mrt$Female)

## End(Not run)

SEERaBomb documentation built on Dec. 16, 2019, 1:21 a.m.