Skip to contents

A function to return a character string for each item to either be saved or read in, based on the nesting that is specified in this function. To change the nesting, we will change this function

Usage

get_filepath(
  output_subdir,
  scenario,
  forecast_date,
  model_type,
  location,
  output_type,
  file_extension
)

Arguments

output_subdir

Character string to upper level directory where outputs live

scenario

string indicating the evaluation scenario

forecast_date

string indicating the forecast date in "YYYY-MM-DD" format

model_type

string indicating the type of model, either "ww" or "hosp" for now but can be used for model comparison

location

string indicating the location

output_type

string indicating the type of output

file_extension

string indicating the file extension e.g. ".tsv"

Value

string of the full filepath