Collate AEMO data

Share:

Description

This function collates AEMO data files that are on the path. These are identified by having a filename of the form [REGION][YYYY][MM].csv (e.g. "NSW201405.csv"). If no such file exists on path, all available data files are downloaded from the AEMO website using get_aemo_data.

Usage

1
collate_aemo_data(path = ".", remove_files = TRUE)

Arguments

path

a string containing the location of the AEMO (CSV) data files that you wish to collate. These must have filenames of the form specified above.

remove_files

a boolean flag indicating whether the AEMO CSV files should be removed once the data sets are collated.

Value

a data frame containing five fields: "REGION" (factor), "SETTLEMENTDATE" (POSIXct), "TOTALDEMAND" (numeric), "RRP" (numeric) and "PERIODTYPE" (factor).

Examples

1
2
3
4
## Not run: 
collate_aemo_data()

## End(Not run)