+ All Categories
Home > Documents > 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009.

3.5 Reasons to Switch from Excel to R Patrick Burns March 2009.

Date post: 16-Jan-2016
Category:
Upload: stanley-boyd
View: 213 times
Download: 0 times
Share this document with a friend
40
3.5 Reasons to Switch from Excel to R Patrick Burns Patrick Burns http://www.burns-stat.com http://www.burns-stat.com March 2009 March 2009
Transcript
Page 1: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

3.5 Reasons to Switch from Excel to R

Patrick BurnsPatrick Burns

http://www.burns-stat.comhttp://www.burns-stat.com

March 2009March 2009

Page 2: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 3: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Outline

Similarity Reasons to Switch Why Not R? My Ulterior Motive

Page 4: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Applications of Spreadsheets Data storage Data manipulation Graphics Simple analyses Not-so-simple analyses

Page 5: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 6: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The Genealogy of R

S

Page 7: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The Genealogy of R

S

S+

Page 8: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The Genealogy of R

S

S+

Lisp

Page 9: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The Genealogy of R

S

S+R

Lisp

Page 10: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 11: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The R Remit

“S” does not stand for statistics

Data analysis and graphics

R is doing okay

Page 12: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 13: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 14: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Outline

Similarity Reasons to Switch Why Not R? My Ulterior Motive

Page 15: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 16: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Reason 1: Safety

This is the best reason

Page 17: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

An Image of Computing

Data = Water

Functionality = Earth

Page 18: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 19: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 20: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 21: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 22: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Development Cycle: R

Write function

Debug function

Use function

Fix bugs as they periodically appear

Page 23: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Development Cycle: Spreadsheet Write spreadsheet

Debug spreadsheet

Populate spreadsheet

Debug this instance of spreadsheet

Page 24: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Development Cycle: Spreadsheet Write spreadsheet

Debug spreadsheet

Populate spreadsheet

Debug this instance of spreadsheet

Page 25: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Time Series of Bugs: R

Number of bugs hardly ever increases

Bounded below by zero

Implies convergence

We have hope for convergence at zero

Page 26: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Time Series of Bugs: Spreadsheet Sort of like Brownian Motion

Page 27: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Reason 2: Speed

Spreadsheet took most of the night, often fell over

Transferred to S (for safety)

Took a few minutes

Page 28: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Reason 3: Graphics

No reason that spreadsheets should have poor graphics

But good graphics haven’t happened

Page 29: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

0

5

10

15

20

0 5 10 15

Series1

Page 30: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 31: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Reason 3 and a half

Page 32: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Outline

Similarity Reasons to Switch Why Not R? My Ulterior Motive

Page 33: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Why Not? – A Bad Reason Command line

Can write functions to overcome memory lapses

Can build custom menus

Page 34: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Why Not? – A Good Reason Conversion cost

Page 35: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 36: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Reducing Transition Energy Improve R usability

Probably little scope

Easier custom menus would help

Improve R documentation

Page 37: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Outline

Similarity Reasons to Switch Why Not R? My Ulterior Motive

Page 38: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

The Ulterior Motive

We need a book

Possible title: “Switch from Excel to R”

It ain’t me, babe

Page 39: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.
Page 40: 3.5 Reasons to Switch from Excel to R Patrick Burns  March 2009.

Recommended