Skip to content

Instantly share code, notes, and snippets.

@dholstius
Created June 6, 2012 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dholstius/2885519 to your computer and use it in GitHub Desktop.
Save dholstius/2885519 to your computer and use it in GitHub Desktop.
How to fetch datapoints with the pachube R package
key <- 'bZW0wu4jbqMrkzHhapw8E9...' # use your API key here
t0 <- ISOdate(2012, 05, 23, hour=19, tz="America/Los_Angeles")
z <- getDatapoints(58785, 'large', key, start=t0, interval=30, duration='12hours')
plot(z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment