Package: rfars 2.0.4

Steve Jackson

rfars: Download and Analyze Crash Data

Easily Download Analysis-Ready Crash Data from the U.S. National Highway Traffic Safety Administration.

Authors:Steve Jackson [aut, cre]

rfars_2.0.4.tar.gz
rfars_2.0.4.zip(r-4.7-any)rfars_2.0.4.zip(r-4.6-any)rfars_2.0.4.zip(r-4.5-any)
rfars_2.0.4.tgz(r-4.6-any)rfars_2.0.4.tgz(r-4.5-any)
rfars_2.0.4.tar.gz(r-4.7-any)rfars_2.0.4.tar.gz(r-4.6-any)
rfars_2.0.4.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
rfars/json (API)

# Install 'rfars' in R:
install.packages('rfars', repos = c('https://s87jackson.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/s87jackson/rfars/issues

Pkgdown/docs site:https://s87jackson.github.io

Datasets:

On CRAN:

Conda:

crashfatalitiesofficial-statisticstransportation

6.50 score 12 stars 22 scripts 406 downloads 5 exports 39 dependencies

Last updated from:6461b7230e. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK390
source / vignettesOK223
linux-releaseOK349
macos-releaseOK380
macos-oldrelOK407
windows-develOK158
windows-releaseOK196
windows-oldrelOK221
wasm-releaseOK126

Exports:%>%compare_countscountsget_farsget_gescrss

Dependencies:bitbit64clicliprcpp11crayondata.tabledigestdownloaderdplyrforcatsgenericsgluehavenhmsjanitorlifecyclelubridatemagrittrpillarpkgconfigprettyunitsprogresspurrrR6readrrlangsnakecasestringistringrtibbletidyrtidyselecttimechangetzdbutf8vctrsvroomwithr

Alcohol Counts

Last update: 2026-04-07
Started: 2025-08-19

Crash Sequence of Events

Last update: 2026-04-07
Started: 2023-08-08

Searchable Codebooks

Last update: 2026-04-07
Started: 2024-02-15

Counts
annual_counts | Generating Custom Counts | Comparing Counts

Last update: 2025-10-22
Started: 2024-02-15

Readme and manuals

Help Manual

Help pageTopics
(Internal) Find crashes involving alcoholalcohol
Annual Crash Counts by Risk Factorsannual_counts
(Internal) Append RDS filesappendRDS
(Internal) Find crashes involving bicyclistsbicyclist
(Internal) Check internet connectioncheck_internet_connection
Compare countscompare_counts
Generate countscounts
(Internal) Find crashes involving distracted driversdistracted_driver
(Internal) Download FARS data filesdownload_fars
(Internal) Download GES/CRSS data filesdownload_gescrss
(Internal) Find crashes involving drivers of a given agedriver_age
(Internal) Find crashes involving drugsdrugs
FARS Codebookfars_codebook
Synonym table for various geographical scalesgeo_relations
GESCRSS Codebookgescrss_codebook
Get FARS dataget_fars
Get GES/CRSS dataget_gescrss
(Internal) Check SAS attributesget_sas_attrs
(Internal) Find hit and run crasheshit_and_run
(Internal) Import the multi_ filesimport_multi
(Internal) Find crashes involving large truckslarge_trucks
(Internal) Make id and year numericmake_all_numeric
(Internal) Generate an ID variablemake_id
(Internal) Find crashes involving motorcyclesmotorcycle
(Internal) Parse formats.sas instead of using a .sas7bcat fileparse_sas_format
(Internal) Find crashes involving pedalcyclistspedalcyclist
(Internal) Find crashes involving pedstrians or bicyclistspedbike
(Internal) Find crashes involving pedestrianspedestrian
(Internal) Find crashes involving police pursuitspolice_pursuit
Prepare downloaded FARS files for useprep_fars
Prepare downloaded GES/CRSS files for useprep_gescrss
(Internal) Takes care of basic SAS file readingread_basic_sas
(Internal) Find crashes involving road departuresroad_depart
(Internal) Find crashes involving rolloversrollover
(Internal) Find crashes involving speedingspeeding
(Internal) Use FARS data filesuse_fars
(Internal) Use GESCRSS data filesuse_gescrss
(Internal) use_impuse_imp
(Internal) Validate user-provided list of statesvalidate_states