3.5 reasons to switch from excel to r patrick burns march 2009
TRANSCRIPT
![Page 1: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/1.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/2.jpg)
![Page 3: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/3.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/4.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/5.jpg)
![Page 6: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/6.jpg)
The Genealogy of R
S
![Page 7: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/7.jpg)
The Genealogy of R
S
S+
![Page 8: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/8.jpg)
The Genealogy of R
S
S+
Lisp
![Page 9: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/9.jpg)
The Genealogy of R
S
S+R
Lisp
![Page 10: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/10.jpg)
![Page 11: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/11.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/12.jpg)
![Page 13: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/13.jpg)
![Page 14: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/14.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/15.jpg)
![Page 16: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/16.jpg)
Reason 1: Safety
This is the best reason
![Page 17: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/17.jpg)
An Image of Computing
Data = Water
Functionality = Earth
![Page 18: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/18.jpg)
![Page 19: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/19.jpg)
![Page 20: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/20.jpg)
![Page 21: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/21.jpg)
![Page 22: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/22.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/23.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/24.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/25.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/26.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/27.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/28.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/29.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/30.jpg)
![Page 31: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/31.jpg)
Reason 3 and a half
…
![Page 32: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/32.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/33.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/34.jpg)
Why Not? – A Good Reason Conversion cost
![Page 35: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/35.jpg)
![Page 36: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/36.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/37.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/38.jpg)
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](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/39.jpg)
![Page 40: 3.5 Reasons to Switch from Excel to R Patrick Burns March 2009](https://reader035.vdocument.in/reader035/viewer/2022070412/56649efb5503460f94c0eb72/html5/thumbnails/40.jpg)