Learn R Programming

aemo (version 0.3.0)

get_aemo_data: Download data from AEMO website

Description

Trading interval level price and demand data is available on the AEMO website. This function downloads these files for each region and period requested.

Usage

get_aemo_data(regions, years, months, path = ".")

Arguments

regions

a case invariant character vector of abbreviated AEMO regions. Must be one of "nsw", "vic", "sa", "qld", "snowy" or "tas". Snowy region data is only available up to and including Jun 2008 while Tasmania region data is available from and including May 2005. Otherwise, all regions have data available from and including Dec 1998 up to the end of the month previous to the current month.

years

a numeric vector of years in the form YYYY. See the regions parameter for more info.

months

a numeric vector of months in the form MM.See the regions parameter for more info.

path

defaults to "." (current working directory) and denotes the path to which the AEMO files are downloaded.

Value

data files whose number corresponds to the maximum length of one of the parameters. The file names have the pattern: "[REGION][YYYY][MM].csv".

Details

AEMO's copyright permissions specify that:

"AEMO confirms its general permission for anyone to use AEMO Material for any purpose, but only with accurate and appropriate attribution of the relevant AEMO Material and AEMO as its author".

References

AEMO website

Examples

Run this code
# NOT RUN {
get_aemo_data("nsw", 2014, 1)
# }

Run the code above in your browser using DataLab