check_input_file: Local helper to be reused.
Description
Local helper to be reused.
Usage
check_input_file(filename = NULL, type = NULL, data_dir = NULL, year = NULL)
Arguments
- filename
Character string of the filename of the .csv to read.
- type
One of 'collision', 'casualty', 'Vehicle'.
- data_dir
Where sets of downloaded data would be found.
- year
Single year for which data are to be read.