Pin down a file on disk from four parameters.Source:
Pin down a file on disk from four parameters.
locate_one_file( filename = NULL, data_dir = get_data_directory(), year = NULL, type = NULL )
Character string of the filename of the .csv to read, if this is given, type and years determine whether there is a target to read, otherwise disk scan would be needed.
Where sets of downloaded data would be found.
Single year for which file is to be found.
One of: 'Collision', 'Casualties', 'Vehicles'; ignores case.