Parse model output file metadata from file name
Usage
parse_file_name(file_path, file_type = c("model_output", "model_metadata"))
Arguments
- file_path
Character string. A model output file name. Can include parent directories which are ignored.
- file_type
Character string. Type of file name being parsed. One of
"model_output"
or"model_metadata"
.
Value
A list with the following elements:
round_id
: The round ID the model output is associated with (NA
for model metadata files.)team_abbr
: The team responsible for the model.model_abbr
: The name of the model.model_id
: The unique model ID derived from the concatenation of<team_abbr>-<model_abbr>
.ext
: The file extension.