locate_one_file: Pin down a file on disk from parameters.

View source: R/utils.R

locate_one_fileR Documentation

Pin down a file on disk from parameters.

Description

Pin down a file on disk from parameters.

Usage

locate_one_file(
  filename = NULL,
  data_dir = get_data_directory(),
  year = NULL,
  type = NULL
)

Arguments

filename

Character string of the filename of the .csv to read.

data_dir

Where sets of downloaded data would be found.

year

Single year for which data are to be read.

type

One of 'collision', 'casualty', 'Vehicle'; defaults to 'collision'.

Examples


locate_one_file()


stats19 documentation built on March 18, 2026, 5:08 p.m.