total deaths, injuries, property damages and crop damages
sum(sd1$prop, na.rm=TRUE)/(2011-1950); # total yearly average property damage
## [1] 5327207437
sum(sd1$crop, na.rm=TRUE)/(2011-1950); # total yearly average crop damage
## [1] 800303331
sum(sd1$fatal)/(2011-1950); # total yearly average fatalities
## [1] 248.2787
sum(sd1$inj)/(2011-1950); # total yearly average injuries
## [1] 2303.738
Accross the U.S., on average, hundreds of people die, thousands are injured, and damages to property and crops cost billions each year.
Question 1: Across the United States, which types of events (as indicated in the EVTYPE variable) are most harmful with respect to population health?
fatalities<-sd1[order(-sd1[, 4]), ][1:10, ]
# fatalities
injuries<-sd1[order(-sd1[,5]), ][1:10, ]
# injuries
The following bar charts demonstrate the numbers of fatalities and injuries caused by storm type
par(mfrow=c(1,2), mar=c(7, 4, 3, 1))
heat<-heat.colors(10, alpha=.8); # use a color ramp!
barplot(height=fatalities$fatal, names.arg=fatalities$EType,
las=2, cex.lab=.7, cex.axis=.7, cex.names=.6, cex.main=.8,
ylim=c(0,6000), main="Deaths Caused by Storms",
ylab="Total Fatalities", col=heat)
topo<-topo.colors(10, alpha=.8); # use a color ramp!
barplot(height=injuries$inj/1000, names.arg=injuries$EType,
las=2, cex.lab=.7, cex.axis=.7, cex.names=.6, cex.main=.8,
ylim=c(0,100), main="Injuries Caused by Storms",
ylab="Total Injuries (in thousands)", col=topo)

Tornados have caused more deaths and injuries than other storm types by far. Since data have been collected in 1950, tornados have caused about 100 deaths and thousands of injuries per year. Heat waves are also highly fatal, resulting in dozens of deaths per year on average.
Question 2: Across the United States, which types of events have the greatest economic consequences?
propertydamage<-sd1[order(-sd1[, 2]), ][1:10, ]
# propertydamage
cropdamage<-sd1[order(-sd1[, 3]), ][1:10, ]
# cropdamage
The following bar charts demonstrate the relative damages to property and the relative damages to crops, by storm type
par(mfrow=c(1,2), mar=c(7, 4, 3, 1))
heat<-heat.colors(10, alpha=.8); # use a color ramp!
barplot(height=propertydamage$prop/10^9, names.arg=propertydamage$EType,
las=2, cex.lab=.7, cex.axis=.7, cex.names=.6, cex.main=.8,
ylim=c(0,160), main="Most Harmful Type of Storms to Property",
ylab="Property Damage in $Billions", col=heat)
topo<-topo.colors(10, alpha=.8); # use a color ramp!
barplot(height=cropdamage$crop/10^9, names.arg=cropdamage$EType,
las=2, cex.lab=.7, cex.axis=.7, cex.names=.6, cex.main=.8,
ylim=c(0,15), main="Most Harmful Type of Storms to Crops",
ylab="Crop Damage in $Billions", col=topo)

Floods and hurricanes have caused the most property damage, while droughts have done the most damage to crops. While these figures are measured in $Billions, it may be noted that the economic impact of storms to property is exponentially higher than storm damages to crops.
Finally, because damages to property and crops can be measured in dollars, we can calculate their combined economic impact.
propertydamage$Tecon<-propertydamage$prop+propertydamage$crop
Tot.Econ<-propertydamage[order(-propertydamage[,6]),]
par(mfrow=c(1,1), mar=c(6,4,4,2))
heat<-heat.colors(10, alpha=1); # use a color ramp!
bar5<-barplot(height=Tot.Econ$Tecon/10^9, names.arg=Tot.Econ$EType,
las=2, cex.lab=.8, cex.axis=.9, cex.names=.6, cex.main=1,
ylim=c(0,165), main="Total Economic Costs by Type of Storm",
ylab="Total Damages in $Billions", col=heat)
text(x = bar5, y = round(Tot.Econ$Tecon/10^9,2),
label = round(Tot.Econ$Tecon/10^9,2), pos = 3, cex = 0.7)

Together, floods and hurricanes have had the greatest economic consequences. Since data has been collected in 1950, floods have cost over $100 billion in property damages alone - almost three Billion dollars year. Hurricanes have added an average additional billion dollars per year in damages.