Learn R Programming

aemo (version 0.4.3)

aemo_pasa: Projected Assessment of System Adequacy (PASA)

Description

Returns short-term (STPASA, 1-7 day) or medium-term (MTPASA, 2-year) system adequacy projections.

Usage

aemo_pasa(
  horizon = c("short", "medium"),
  region = NULL,
  start = NULL,
  end = NULL
)

Value

An aemo_tbl.

Arguments

horizon

One of "short" (default) or "medium".

region

Optional NEM region code.

start, end

Optional window of run-times. Defaults to the last 24 hours.

See Also

Other forecast: aemo_predispatch()

Examples

Run this code
# \donttest{
op <- options(aemo.cache_dir = tempdir())

# STPASA is republished every half hour, so the 24-hour default window
# pulls dozens of files. Pass an explicit narrow window to keep the
# example to a couple of downloads.
try({
  p <- aemo_pasa(horizon = "short", region = "NSW1",
                 start = Sys.time() - as.difftime(1, units = "hours"),
                 end   = Sys.time())
})
options(op)
# }

Run the code above in your browser using DataLab