Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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