extract_weather: Read weather from a local cache and format it for use with...

View source: R/extract_weather.R

extract_weatherR Documentation

Read weather from a local cache and format it for use with the Donkey Dosing model

Description

Read weather from a local cache and format it for use with the Donkey Dosing model

Usage

extract_weather(
  path,
  year = format(Sys.Date(), "%Y"),
  use_cache = TRUE,
  impute_missing = FALSE,
  include_date = FALSE,
  type = "OpenWeather"
)

Arguments

path

a path to a folder containing the raw weather data

year

the year for which to extract data

use_cache

should the cache file be used where possible?

impute_missing

should missing data be imputed?

include_date

should the date be included in the return value?

type

the source type for weather data (only OpenWeather is currently permitted)


ku-awdc/DonkeyDosing documentation built on May 22, 2023, 6:41 a.m.