The History and Use of R
-
Upload
analyticsweek -
Category
Technology
-
view
383 -
download
2
description
Transcript of The History and Use of R
![Page 1: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/1.jpg)
The History and Use of R
Joseph Kambourakis
![Page 2: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/2.jpg)
Ground Rules
• Interrupt me
• These are all my opinions and not of EMC or Big Data Analytics, Discovery & Visualization Meetup
• Slides will be available
![Page 3: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/3.jpg)
![Page 4: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/4.jpg)
![Page 5: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/5.jpg)
Joseph Kambourakis @mouthorjoe
![Page 6: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/6.jpg)
![Page 7: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/7.jpg)
Taught Around the World
![Page 8: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/8.jpg)
WPI
![Page 9: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/9.jpg)
Bentley University
![Page 10: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/10.jpg)
Big Data School
Source:Data Analytics Master's Degrees: 20 Top Programs
![Page 11: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/11.jpg)
Sam Woolford & Dominique Haughton
![Page 12: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/12.jpg)
First Got Exposed to R
![Page 13: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/13.jpg)
What is
R is a free software environment for statistical computing and graphics
A language plus a run-time environment with graphics, a debugger, access to certain system functions, and the ability to run programs stored in script files
![Page 14: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/14.jpg)
What is R’s Hashtag?
![Page 15: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/15.jpg)
Robert Gentleman & Ross Ihaka
• R: A Language for Data Analysis and Graphics
![Page 16: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/16.jpg)
Starts with S
1976 1988 1991
![Page 17: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/17.jpg)
Scheme
• Lexical scoping
![Page 18: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/18.jpg)
Lexical scoping
• Searches through environments
– First global
• Global is your workspace
– Second namespace of packages
• More on packages later
![Page 19: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/19.jpg)
Fortran
• source: Wikipedia
![Page 20: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/20.jpg)
Under the Hood
![Page 21: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/21.jpg)
Open Source
• GNU General Public License
• Freedom 0: The freedom to run the program for any purpose.
• Freedom 1: The freedom to study how the program works, and change it to make it do what you wish.
• Freedom 2: The freedom to redistribute copies so you can help your neighbor.
• Freedom 3: The freedom to improve the program, and release your improvements (and modified versions in general) to the public, so that the whole community benefits.
• source: GNU.org
![Page 22: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/22.jpg)
R Project
• The R Foundation is a not for profit organization working in the public interest. It has been founded by the members of the R Development Core Team in order to – Provide support for the R project and other innovations in
statistical computing. We believe that R has become a mature and valuable tool and we would like to ensure its continued development and the development of future innovations in software for statistical and computational research.
– Provide a reference point for individuals, institutions or commercial enterprises that want to support or interact with the R development community.
– Hold and administer the copyright of R software and documentation.
• source: R Project
![Page 23: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/23.jpg)
Contributors
![Page 24: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/24.jpg)
How it Works: Design
![Page 25: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/25.jpg)
How it Works: Design
• Functional
– mean()
– plot()
![Page 26: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/26.jpg)
How it Works: Design • Interpreted language
![Page 27: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/27.jpg)
How it Works: Install
• Hosted on Comprehensive R Archive Network (CRAN)
• 54 megabytes
![Page 28: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/28.jpg)
http://cran.rstudio.com/
• Download and Install R
• Precompiled binary distributions of the base system and contributed packages, Windows and Mac users most likely want one of these versions of R:
• Download R for Linux
• Download R for (Mac) OS X
• Download R for Windows
• R is part of many Linux distributions, you should check with your Linux package management system in addition to the link above.
![Page 29: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/29.jpg)
How it works: Command Line
![Page 30: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/30.jpg)
How it Works: Packages
• Base
– mean()
• Utils
– read.csv()
• Stats
– lm()
– sd()
![Page 31: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/31.jpg)
Packages
• Mostly hosted on CRAN
• Many others hosted elsewhere
– Github
– RStudio
– Bioconductor
– RevolutionR
![Page 33: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/33.jpg)
Top 10 Most Popular Packages
• source: Revolution Analytics Blog
![Page 34: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/34.jpg)
![Page 35: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/35.jpg)
Data Frame
![Page 36: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/36.jpg)
Capabilities
• ANALYTICS – Basic Mathematics – Basic Statistics – Probability Distributions – Machine Learning – Optimization and Mathematical Programming – Signal Processing – Simulation and Random Number Generation – Statistical Modeling – Statistical Tests
• GRAPHICS AND VISUALIZATION – Static Graphics – Dynamic Graphics – Devices and Formats
![Page 37: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/37.jpg)
Model & Plot
![Page 38: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/38.jpg)
GUI:RStudio
![Page 39: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/39.jpg)
![Page 40: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/40.jpg)
![Page 41: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/41.jpg)
How Does it Compare?
![Page 42: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/42.jpg)
How Does it Compare?
![Page 43: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/43.jpg)
How Does it Compare? R SAS SPSS Professional MATLAB
Cost Free! Very VERY High High - $9,975 High
Documentation Yes Very comprehensive
OK Some examples
Training Course NA Yes Yes Yes
User interface Low Medium Best Medium
Output Separate commands
Automatically produce diagnosis graph and forecast
Totally automated Some automated via GUI, some specific command
Models* Does not STL moving average
Does not have ARCH/GARCH + and other moving average models
Does not have MA & decomposition models
Certification Program
Yes Yes Yes
![Page 44: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/44.jpg)
Commercial Support
![Page 45: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/45.jpg)
Commercial Support
![Page 46: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/46.jpg)
• Version 3.1.1
7/10/2014
• source
Where it’s Now?
![Page 47: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/47.jpg)
Where it’s Going
Source: Revolution Analytics Blog
![Page 48: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/48.jpg)
Where it’s Going: Extensions and Interactions
• Rcpp
– Transfer from R to C++, and from C++ to R
• RLLVM
– Creates code
• H2O
– Big data package
![Page 49: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/49.jpg)
The best thing about R is that it was developed by statisticians. The worst thing about R is that...it was developed by statisticians.
Bo Cowgill
![Page 50: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/50.jpg)
Good: Open Source
• So many contributors
• Free!
• Community
![Page 51: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/51.jpg)
Bad: Open Source
• No customer support
• Features
![Page 52: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/52.jpg)
Good: Frequent Updates
• Always new packages
• New updates and bug fixes
![Page 53: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/53.jpg)
Bad: Frequent Updates
• Package updates
• R updates
![Page 54: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/54.jpg)
Bad: Documentation
![Page 55: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/55.jpg)
Bad:Speed
• 40 year old code
![Page 56: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/56.jpg)
Bad:Speed
• Interpreted
![Page 57: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/57.jpg)
Bad:Speed
• Single threaded
![Page 58: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/58.jpg)
Bad: Memory
• All stored in memory
![Page 59: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/59.jpg)
Soccer Example
@11tegen11
![Page 61: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/61.jpg)
Source: fun with R
![Page 62: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/62.jpg)
![Page 63: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/63.jpg)
Use Cases 4
![Page 64: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/64.jpg)
How to Learn:
![Page 65: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/65.jpg)
How to Learn:
![Page 66: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/66.jpg)
How to Learn: RStudio How to Learn:
![Page 67: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/67.jpg)
How to Learn: Data Camp
How to Learn:
![Page 68: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/68.jpg)
How to Learn: Springer Series
![Page 69: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/69.jpg)
How to Learn: Art of R
Programming
![Page 70: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/70.jpg)
How to Learn: Boot Camp Boston Predictive Analytics Meetup
![Page 71: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/71.jpg)
How to Learn: Online Videos
![Page 72: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/72.jpg)
Web Resources:
![Page 73: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/73.jpg)
Web Resources:
![Page 74: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/74.jpg)
Web Resources:
![Page 75: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/75.jpg)
UseR Groups & Conferences
![Page 76: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/76.jpg)
Closing Thoughts
![Page 77: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/77.jpg)
Thank You
![Page 78: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/78.jpg)
Thank You
![Page 79: The History and Use of R](https://reader031.fdocuments.us/reader031/viewer/2022020206/5455d4d4b1af9fcf338b4aaf/html5/thumbnails/79.jpg)
Questions
?