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

1
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.

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".

Value

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

References

AEMO website

Examples

1
2
3
4
## Not run: 
get_aemo_data('nsw', 2014, 1)

## End(Not run)