View source: R/download_data.R
read_njtr1 | R Documentation |
Read an NJTR-1 data file that was previously downloaded. This function will read a .zip or .txt file in the format published by the NJDOT and return a data frame with cleaned data.
read_njtr1(file, geo = FALSE)
file |
path to a file downloaded from NJDOT |
geo |
Logical, whether to filter only to geotagged cases (default = FALSE) |
tibble of cleaned & parsed NJTR-1 data
read_njtr1(system.file("extdata/testdata/Ocean2019Accidents.zip", package = "njtr1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.