Learn R Programming

aemo (version 0.3.0)

collate_aemo_data: Collate AEMO data

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

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

Run this code
# NOT RUN {
collate_aemo_data()
# }

Run the code above in your browser using DataLab