Learn R Programming

stats19 (version 4.1.0)

locate_one_file: 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

Run this code
# \donttest{
locate_one_file()
# }

Run the code above in your browser using DataLab