R Code for Highway Safety Analytics and Modeling Textbook