Skip to contents

Generate a function for loading raw output objects for a location/forecast date/scenario trio.

Usage

get_object_loader(location, forecast_date, scenario, raw_output_dir)

Arguments

location

Name of the location, as a string.

forecast_date

The forecast date, as a date or in a format coercible by as.Date().

scenario

Name of the scenario, as a string.

raw_output_dir

Directory in which to look for the .rds file.

Value

A function for loading objects from .rds files, as the output of calling purrr::partial() on read_rds_with_suffix().