R code to analyze disaster losses from the EM-DAT database