Created
January 15, 2014 19:03
-
-
Save cpsievert/8442235 to your computer and use it in GitHub Desktop.
Manipulating XML from Open Street Map with XML2R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setwd("~/Downloads") | |
obs <- XML2Obs("out.xml", url.map=TRUE) | |
unique(names(obs)) #you might want to re_name or add_key before collapsing | |
tables <- collapse(obs) | |
head(tables[["osm//node//tag"]]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment