njtr1 is an R package that makes it easy to obtain detailed data on car crashes in New Jersey for transportation planning, analyis and research.

The package downloads data published by the New Jersey Department of Transportation that is collected when police officers file the form NJTR-1 following a motor vehicle crash that was reported to law enforcement within the State of New Jersey.

This package takes the raw data that is published by the state and cleans it for use in R. The data published by the state lacks the header row that identifies the column, among other issues, so this package endeavors to make the state’s data more easily usable.

The latest development version of the package can currently be installed from Github using devtools:


Once installed, it’s easy to start using zipcodeR to obtain ZIP code data for your next project:

get_njtr1(year = 2019, type = "Accidents")

get_njtr1(year = 2019, type = "Drivers")

get_njtr1(year = 2019, type = "Vehicles")

Report any issues with the package here.

Pull requests and suggestions for new features / changes are welcome via Github

Gavin Rozzi
Gavin Rozzi
Pushing the boundaries of data, technology & public policy

Gavin Rozzi is a data scientist from New Jersey with expertise in leveraging public sector datasets, spatial data & mapping and emerging technologies to inform public policy development.