getCleanGridSpyFile: Loads cleaned grid spy power data into a data.table

getCleanGridSpyFileR Documentation

Loads cleaned grid spy power data into a data.table

Description

getCleanGsFile

Usage

getCleanGridSpyFile(f)

Arguments

f

file to load

Details

Loads a clean Grid Spy data file using readr::read_csv. Ths enables .gz files to be autoloaded.

We STRONLY advise that you use this function to load the cleaned Grid Spy files as it:

- forces dateTime_orig to be col_character to prevent readr attempting to parse it (incorrectly). - forces powerW be col_double to stop readr assuming an integer from parsing the first few lines

We allow readr to auto-parse the r_dateTime column but note that this will set the timezone etc to the timezone correct for the current location. This may not be what you intend.

Note that you can also use this function to load extracts from the Grid Spy files. It will just complain (throw a warning) if any of the columns it expects are missing.

Author(s)

Ben Anderson, b.anderson@soton.ac.uk


CfSOtago/GREENGridData documentation built on June 10, 2022, 8:03 p.m.