prep_fars {rfars} | R Documentation |
Prepare downloaded FARS files for use
Description
Prepare downloaded FARS files for use
Usage
prep_fars(y, wd, rawfiles, prepared_dir, states)
Arguments
y |
year, to be passed from |
wd |
working directory, , to be passed from |
rawfiles |
dataframe translating filenames into standard terms,
to be passed from |
prepared_dir |
the location where prepared files will be saved,
to be passed from |
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
[Package rfars version 1.2.0 Index]