Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
If you were to hop into your personal aircraft, and plotted a straight line course taking off in one state and landing in the SAME state, how many other states might you fly over? On other words, what's the best state for "flyovers" of other states? Todd Schnieder from the Rapgenius engineering team answered that question using the R language. He created an algorithm that, for every state, traces all flight paths between two points on the border and counts the number of states the flight path crosses. For example, here's the algorithm working on West Virginia:
Honourable mention goes to Maryland which has a flight path crossing four states, plus Washington DC. You can see that flight path, plus more details about the R script that ran the algorithm, at the link below.
News Genius: What's the Most "Concave" State in the U.S.? Using R to Solve a Geography Puzzle
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.