Skip to contents

Prepare downloaded FARS files for use

Usage

prep_fars(y, wd, rawfiles, prepared_dir, states)

Arguments

y

year, to be passed from prep_fars

wd

working directory, , to be passed from prep_fars

rawfiles

dataframe translating filenames into standard terms, to be passed from prep_fars

prepared_dir

the location where prepared files will be saved, to be passed from prep_fars

states

(Optional) Inherits from get_fars()

Value

Produces six files: yyyy_flat.rds, yyyy_multi_acc.rds, yyyy_multi_veh.rds, yyyy_multi_per.rds, yyyy_events.rds, and codebook.rds