Posts Tagged ‘ XML ’

Grabbing Tables in Webpages Using the XML Package

October 24, 2010
By

ables are pretty common in web pages as data sources, and the most direct way to get these data is probably to copy and paste. This is OK if there are only two or three tables, and when we need to grab 5000 tables in 1000 web pages, we may not really wish to fulfill

Read more »

Analyze Online R User Conference Data

July 19, 2010
By
Analyze Online R User Conference Data

The R User Conference 2010 will be underway shortly - and what better way to commemorate the event than to  blast out some R code related to the conference?  HTML tables on websites for the past three years list participants an...

Read more »

What (Search Engines Think) People Want

July 17, 2010
By
What (Search Engines Think) People Want

R O How G8 U R!Hey, R U there? Having used the R language for awhile now, I would like to let you know that R works - in fact R works really well. If you keep up with R news this should be no surprise...this is, after all...an r blog! R and R alone c...

Read more »

Maps, Geocoding, and the R User Conference 2010

July 14, 2010
By
Maps, Geocoding, and the R User Conference 2010

The R User Conference 2010 is scheduled for July 20-23, 2010.  Wanna know where?Although there are more sophisticated methods of mapping with R the maps package makes mapping activities straightforward.  A bit of XML and Google...

Read more »

Hacker News Religion Poll

July 5, 2010
By
Hacker News Religion Poll

Hacker News user post polls from time to time - the following code constructs a bar chart based upon the responses to a recent poll on the stated religious affiliation of Hacker news users (parsed straight from the site).  The chart above is as of...

Read more »

Occupational Wage Comparison Plotted in R

June 17, 2010
By
Occupational Wage Comparison Plotted in R

Ever have conversations with your kids about what they are going to do with their life? Still trying to figure out what you are going to do with yours?Best to not starve...The chart above represents the percentage of each occupation that earn a given h...

Read more »

Chart the U.S. Gross National Product with the Federal Reserve API

June 17, 2010
By
Chart the U.S. Gross National Product with the Federal Reserve API

The Federal Reserve of St. Louis has an amazing amount of economic data available through their API. You need to apply for an API key, and once you have been approved you include your API key as URL parameter to access your data. api_key='YOUR API KE...

Read more »

3 lines of R code to Process a Web Service

June 9, 2010
By
3 lines of R code to Process a Web Service

Ruby is well known for its terse syntax and ability to process web services. I prefer JSON (Javascript Object Notation) to XML whenever possible. For example, a script to retrieve a list of World Bank Data takes all of three lines of code (after in...

Read more »

Plotting World Bank Data with R

June 8, 2010
By
Plotting World Bank Data with R

Copy and paste the code listed in this post below, and you can create a plot of World Bank data using R with a call like the following:plotWorldBank('USA','NY.GDP.MKTP.KD.ZG')There is a wealth of economic and demographic available at the World Bank. ...

Read more »

The 1000 most-visited sites analyzed using R

June 5, 2010
By
The 1000 most-visited sites analyzed using R

Ever wondered about which Computer and Electronics web sites get the most Page Views? Based upon data recently published by Google:The R program to create this graph is as follows:library(XML)# URL for the Google Datau="http://www.google.com/adplanner...

Read more »