rfars2.0.2 package

Download and Analyze Crash Data

alcohol

(Internal) Find crashes involving alcohol

appendRDS

(Internal) Append RDS files

bicyclist

(Internal) Find crashes involving bicyclists

check_internet_connection

(Internal) Check internet connection

compare_counts

Compare counts

counts

Generate counts

distracted_driver

(Internal) Find crashes involving distracted drivers

download_fars

(Internal) Download FARS data files

download_gescrss

(Internal) Download GES/CRSS data files

driver_age

(Internal) Find crashes involving drivers of a given age

drugs

(Internal) Find crashes involving drugs

get_fars

Get FARS data

get_gescrss

Get GES/CRSS data

get_sas_attrs

(Internal) Check SAS attributes

hit_and_run

(Internal) Find hit and run crashes

import_multi

(Internal) Import the multi_ files

large_trucks

(Internal) Find crashes involving large trucks

make_all_numeric

(Internal) Make id and year numeric

make_id

(Internal) Generate an ID variable

motorcycle

(Internal) Find crashes involving motorcycles

parse_sas_format

(Internal) Parse formats.sas instead of using a .sas7bcat file

pedalcyclist

(Internal) Find crashes involving pedalcyclists

pedbike

(Internal) Find crashes involving pedstrians or bicyclists

pedestrian

(Internal) Find crashes involving pedestrians

pipe

Pipe operator

police_pursuit

(Internal) Find crashes involving police pursuits

prep_fars

Prepare downloaded FARS files for use

prep_gescrss

Prepare downloaded GES/CRSS files for use

read_basic_sas

(Internal) Takes care of basic SAS file reading

road_depart

(Internal) Find crashes involving road departures

rollover

(Internal) Find crashes involving rollovers

speeding

(Internal) Find crashes involving speeding

use_fars

(Internal) Use FARS data files

use_gescrss

(Internal) Use GESCRSS data files

use_imp

(Internal) use_imp

validate_states

(Internal) Validate user-provided list of states

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

  • Maintainer: Steve Jackson
  • License: CC0
  • Last published: 2025-10-22