Skip to content

Instantly share code, notes, and snippets.

@cpsievert
Created February 8, 2014 04:47
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 cpsievert/8876851 to your computer and use it in GitHub Desktop.
Save cpsievert/8876851 to your computer and use it in GitHub Desktop.
XML2R Example for PowerPoolMonitoring
#This example will require version 0.0.5 of XML2R
library(devtools)
install_github("XML2R", "cpsievert")
library(XML2R)
#you could use multiple files here if you wanted...
files <- "https://www.misoenergy.org/ria/Consolidated.aspx?format=xml"
obs <- XML2Obs(files)
names(obs)[grep("PricingNode", names(obs))] <- "PricingNode"
tables <- collapse_obs(obs)
head(tables[[5]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment