Learn R Programming

SEERaBomb (version 2019.2)

mkMrt: 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.

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

Run this code
# NOT RUN {
library(SEERaBomb)
mkMrt("username", "password")# sub in your personal account info
load("~/data/usMort/mrt.RData")
head(mrt$Female)
# }

Run the code above in your browser using DataLab