| extractCleanGridSpyCircuit | R Documentation |
extractCleanGridSpyCircuit loops over all clean household grid spy data files and loads each in turn using readr::read_csv. It filters each file to
extract data for particular circuits between two dates and creates some derived time/date variables before
using rbind to create a single data.table which is saved but not returned.
extractCleanGridSpyCircuit(fPath, exFile, circuitPattern, dateFrom, dateTo)
fPath |
location of files to load |
exFile |
location to save the results |
circuitPattern |
the circuit pattern to match |
dateFrom |
date to start extract (inclusive) |
dateTo |
date to end extract (inclusive) |
Function matches circuitPattern to extract specific circuits and selects observations between
dateFrom and dateTo. Use this to extract any circuit you want between any given dates.
circuitPattern is passed to the data.table operator %like% so wild cards & stuff may work. YMMV
Use of readr::read_csv enables .gz files to be autoloaded and proper parsing of dateTimes.
Ben Anderson, b.anderson@soton.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.