mkMrt {SEERaBomb} | R Documentation |
Make mortality binaries
Description
Gets mortality data from the Human Mortality Database http://www.mortality.org/ and puts it in the file ‘mrt.RData’.
Usage
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
Examples
## Not run:
library(SEERaBomb)
mkMrt("username", "password")# sub in your personal account info
load("~/data/usMort/mrt.RData")
head(mrt$Female)
## End(Not run)
[Package SEERaBomb version 2019.2 Index]