By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
SmartData Collective
  • Analytics
    AnalyticsShow More
    data science anayst
    Growing Demand for Data Science & Data Analyst Roles
    6 Min Read
    predictive analytics in dropshipping
    Predictive Analytics Helps New Dropshipping Businesses Thrive
    12 Min Read
    data-driven approach in healthcare
    The Importance of Data-Driven Approaches to Improving Healthcare in Rural Areas
    6 Min Read
    analytics for tax compliance
    Analytics Changes the Calculus of Business Tax Compliance
    8 Min Read
    big data analytics in gaming
    The Role of Big Data Analytics in Gaming
    10 Min Read
  • Big Data
  • BI
  • Exclusive
  • IT
  • Marketing
  • Software
Search
© 2008-23 SmartData Collective. All Rights Reserved.
Reading: Graphing real-time foreclosure data: Data Mashups in R
Share
Notification Show More
Latest News
ai in automotive industry
AI Is Changing the Automotive Industry Forever
Artificial Intelligence
SMEs Use AI-Driven Financial Software for Greater Efficiency
Artificial Intelligence
data security in big data age
6 Reasons to Boost Data Security Plan in the Age of Big Data
Big Data
data science anayst
Growing Demand for Data Science & Data Analyst Roles
Data Science
ai software development
Key Strategies to Develop AI Software Cost-Effectively
Artificial Intelligence
Aa
SmartData Collective
Aa
Search
  • About
  • Help
  • Privacy
Follow US
© 2008-23 SmartData Collective. All Rights Reserved.
SmartData Collective > Big Data > Data Mining > Graphing real-time foreclosure data: Data Mashups in R
Data MiningData Visualization

Graphing real-time foreclosure data: Data Mashups in R

DavidMSmith
Last updated: 2009/06/23 at 8:35 PM
DavidMSmith
5 Min Read
SHARE

The latest in the O’Reilly “Short Cuts” series, and the first devoted to R, is Data Mashups in R. Written by Jeremy Leipzig and Ziao-Yi Lu, this 30-page article is an excellent and very practical example of integrating messy data from varied sources, using R or REvolution R.

It’s not designed as a manual-style introduction to R. But while working through the fully-detailed example it presents, even programmers unfamiliar to R will get a good sense of the practical capabilities of R when working with real-life data sources. “Learning by doing” is a great way to bootstrap your knowledge of any language, and a concrete, practical example like this really helps with that process.

The example used is a particularly timely one: how to automate the process of downloading foreclosure data from a public website, and presenting it in graphical form, like this:

Philly-foreclosures

More Read

data mining

Data Mining Technology Helps Online Brands Optimize Their Branding

Data Visualization Boosts Business Scalability with Sales Mapping
5 Best Practices for Extracting, Analyzing, and Visualizing Data
Can Data Mining Aid with Off-Page SEO Strategies?
10 Important Ways Data Visualization Can Benefit Your Content Strategy
In practical terms, creating this graphic necessitates the integration of data from various sources:
  • Downloading an HTML file of foreclosed addresses from a public web-site (with download.file) and extracting addresses in messy formats (with grep);
  • Downloading geolocation data from a Yahoo web-service and parsing the …

The latest in the O’Reilly “Short Cuts” series, and the first devoted to R, is Data Mashups in R. Written by Jeremy Leipzig and Ziao-Yi Lu, this 30-page article is an excellent and very practical example of integrating messy data from varied sources, using R or REvolution R.

It’s not designed as a manual-style introduction to R. But while working through the fully-detailed example it presents, even programmers unfamiliar to R will get a good sense of the practical capabilities of R when working with real-life data sources. “Learning by doing” is a great way to bootstrap your knowledge of any language, and a concrete, practical example like this really helps with that process.

The example used is a particularly timely one: how to automate the process of downloading foreclosure data from a public website, and presenting it in graphical form, like this:

Philly-foreclosures

In practical terms, creating this graphic necessitates the integration of data from various sources:
  • Downloading an HTML file of foreclosed addresses from a public web-site (with download.file) and extracting addresses in messy formats (with grep);
  • Downloading geolocation data from a Yahoo web-service and parsing the XML result (with xmlTreeParse);
  • Downloading an ESRI shape file of Philadelphia and its census tracts, and plotting a map (with the maptools package);
  • Matching the individual addresses to census tracts and counting the number of foreclosures in each (with plotPolys).
One of the great things about the article is that it’s not presented as a theoretical exercise where everything just works the first time. It takes pains to cover not just how to accomplish the task itself, but also how to deal with problems you’re likely to encounter along the way (especially if you adapt the methods to your own needs). Practical advice is given on how to deal with connection problems caused by firewalls and proxies, how to deal gracefully with the failure of servers to respond (using tryCatch), and how to detect error messages from the Yahoo web service when it fails to recognize addresses. The authors also let you know where they found the information of how to deal with such problems, so it also serves as a guide for finding help resources in R.

My only criticisms are minor ones. The article leads the user through downloading Census data, matching it to the tracts, and performing some simply summary statistics and exploratory graphics, but stops short of any actual statistical analysis. And cutting-and-pasting R code from a PDF document is a pain: there’s no associated script file (as far as I know).

But for experienced R users looking for tips on integrating messy data sources from the Web, or for programmers new to R looking for a practical example to work through as an introduction to R, Data Mashups in R is well worth $4.99 to download.

O’Reilly Short Cuts: Data Mashups in R

Link to original post

DavidMSmith June 23, 2009
Share this Article
Facebook Twitter Pinterest LinkedIn
Share

Follow us on Facebook

Latest News

ai in automotive industry
AI Is Changing the Automotive Industry Forever
Artificial Intelligence
SMEs Use AI-Driven Financial Software for Greater Efficiency
Artificial Intelligence
data security in big data age
6 Reasons to Boost Data Security Plan in the Age of Big Data
Big Data
data science anayst
Growing Demand for Data Science & Data Analyst Roles
Data Science

Stay Connected

1.2k Followers Like
33.7k Followers Follow
222 Followers Pin

You Might also Like

data mining
Data Mining

Data Mining Technology Helps Online Brands Optimize Their Branding

7 Min Read
data visualization for small business
Data Visualization

Data Visualization Boosts Business Scalability with Sales Mapping

7 Min Read
big data visualization
Data Visualization

5 Best Practices for Extracting, Analyzing, and Visualizing Data

6 Min Read
data mining helps with offsite SEO
Data Mining

Can Data Mining Aid with Off-Page SEO Strategies?

10 Min Read

SmartData Collective is one of the largest & trusted community covering technical content about Big Data, BI, Cloud, Analytics, Artificial Intelligence, IoT & more.

ai in ecommerce
Artificial Intelligence for eCommerce: A Closer Look
Artificial Intelligence
AI and chatbots
Chatbots and SEO: How Can Chatbots Improve Your SEO Ranking?
Artificial Intelligence Chatbots Exclusive

Quick Link

  • About
  • Contact
  • Privacy
Follow US

© 2008-23 SmartData Collective. All Rights Reserved.

Removed from reading list

Undo
Go to mobile version
Welcome Back!

Sign in to your account

Lost your password?