Aviation Accident Data in R

A couple of months ago, following the devastating crash of a Germanwings plane in the French Alps killing all those on board, I wrote some code to scrape historical data on aviation accidents for further analysis in R. The code is written in pure (or nearly pure) old-school R, and gathers data from planecrashinfo.com.

The code was then expanded upon using the Hadleyverse by hrbrmstr at R-bloggers. Check it out here.

The planecrashinfo.com accident database includes:

  • All civil and commercial aviation accidents of scheduled and non-scheduled passenger airliners worldwide, which resulted in a fatality (including all U.S. Part 121 and Part 135 fatal accidents)
  • All cargo, positioning, ferry and test flight fatal accidents.
  • All military transport accidents with 10 or more fatalities.
  • All commercial and military helicopter accidents with greater than 10 fatalities.
  • All civil and military airship accidents involving fatalities.
  • Aviation accidents involving the death of famous people.
  • Aviation accidents or incidents of noteworthy interest.

https://github.com/philjette/CrashData/blob/master/PlaneCrashes.R

Here are a couple quick plots from the data

Average proportion of fatalities. We see very little improvement since the early 50s.

AvgPropFatalities

Crash fatalities vs. passengers from 2000 to 2015

CrashFatalitiesvsPassengers

Advertisements
Aviation Accident Data in R

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s