loadCleanGridSpyData: Loads cleaned grid spy power data for all households between...

loadCleanGridSpyDataR Documentation

Loads cleaned grid spy power data for all households between two dates into a single data.table

Description

loadCleanGridSpyData checks to see if the extract file already exists. If not it loops over a file list and loads each in turn using readr::read_csv. It filters each file to extract data between two dates and creates some derived time/date variables before using rbind to create a single data.table which is saved and returned.

Usage

loadCleanGridSpyData(fPath, dateFrom, dateTo)

Arguments

fPath

location of files to load

dateFrom

date to start extract (inclusive)

dateTo

date to end extract (inclusive)

Details

Function selects observations between dateFrom and dateTo.

Use of readr::read_csv enables .gz files to be autoloaded and proper parsing of dateTimes.

Author(s)

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


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