collate_aemo_data: Collate AEMO data

Description Usage Arguments Value Examples

View source: R/aemo.R

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)

imanuelcostigan/aemo documentation built on April 9, 2020, 11:07 p.m.