Informatics energy R package
edit: This is a private fork (Please Make sure this is true!).forked from: davidcsterratt/infenergy
- Modified to connect to a PostgreSQL server setup at
localhost
instead. - Fixed timezone error when working internationally by explicitly specifying timezone parameter
tz
for allas.POSIXlt
. - This readme file.
- Need R
- Need access to the PostgreSQL server at localhost. Can set this up at localhost from a dump of the one at Edinburgh University to speed up things.
Most data are accessable, most functions are usable except get.uni.half.hourly.data
because:
## .
## .
## .
get.uni.half.hourly.data <- function(from, to) {
from <- as.POSIXlt(from, tz="GMT")
to <- as.POSIXlt(to, tz="GMT")
files <- list.files("/home/sterratt/admin/inf-energy/data/uni-hh/", "\\.csv$",
full.names=TRUE)
## .
## .
## .
As we can see right of access to the directories along the path /home/sterratt/admin/inf-energy/data/uni-hh/
is required.
And thus this function can only be used at DICE
Requires the accessibility of this repository to be set to "public"
- Start R
- Type the following:
# run `install.packages("devtools")` if `devtools` is not installed.
library(devtools)
install_github("ed9w2in6/infenergy")
library(infenergy)
example("get.inf.meter.data")
- Start R
- Type the following:
library(devtools)
remove.packages("infenergy")