Data_Mashups_in_R - Data Mashups in R Data Mashups in R...

Info iconThis preview shows pages 1–8. Sign up to view the full content.

View Full Document Right Arrow Icon
Data Mashups in R
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Data Mashups in R Jeremy Leipzig and Xiao-Yi Li Beijing Cambridge Farnham Köln Sebastopol Tokyo
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Data Mashups in R by Jeremy Leipzig and Xiao-Yi Li Copyright © 2011 Jeremy Leipzig and Xiao-Yi Li. All rights reserved. Printed in the United States of America. Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles ( http://my.safaribooksonline.com ). For more information, contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com . Editor: Mike Loukides Production Editor: Kristen Borg Proofreader: Kristen Borg Cover Designer: Karen Montgomery Interior Designer: David Futato Illustrator: Robert Romano Printing History: March 2011: First Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc. Data Mashups in R , the image of a black-billed Australian bustard, and related trade dress are trademarks of O’Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information con- tained herein. ISBN: 978-1-449-30353-2 [LSI] 1299253461
Background image of page 4
Table of Contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii 1. Mapping Foreclosures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Messy Address Parsing 1 Exploring “streets” 3 Obtaining Latitude and Longitude Using Yahoo 4 Shaking the XML Tree 5 The Many Ways to Philly (Latitude) 6 Using Data Structures 7 Using Helper Methods 7 Using Internal Class Methods 7 Exceptional Circumstances 8 The Unmappable Fake Street 8 No Connection 9 Taking Shape 9 Finding a Usable Map 10 PBSmapping 10 Developing the Plot 11 Preparing to Add Points to Our Map 12 Exploring R Data Structures: geoTable 14 Making Events of Our Foreclosures 15 Turning Up the Heat 15 Factors When You Need Them 16 Filling with Color Gradients 17 2. Statistics of Foreclosure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 Importing Census Data 19 Descriptive Statistics 22 Descriptive Plots 23 Correlation 25 Final Thoughts 26 v
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Appendix: Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 vi | Table of Contents
Background image of page 6
Introduction Programmers may spend a good part of their careers scripting code to conform to com-
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 8
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/18/2012 for the course INFORMATIK 2011 taught by Professor Phanthuongcang during the Winter '11 term at Cornell University (Engineering School).

Page1 / 36

Data_Mashups_in_R - Data Mashups in R Data Mashups in R...

This preview shows document pages 1 - 8. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online