Skip to contents

Prepare downloaded GES/CRSS files for use

Usage

prep_gescrss(y, wd, rawfiles, prepared_dir, regions)

Arguments

y

year, to be passed from prep_gescrss

wd

working directory, , to be passed from prep_gescrss

rawfiles

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

prepared_dir

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

regions

(Optional) Inherits from get_gescrss()

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