SlideShare a Scribd company logo
Introduction to R for Data Science
Lecturers
dipl. ing Branko Kovač
Data Analyst at CUBE/Data Science Mentor
at Springboard
Institut za savremene nauke
Data Science zajednica Srbije
branko.kovac@gmail.com
dr Goran S. Milovanović
Data Scientist at DiploFoundation
Data Science zajednica Srbije
goran.s.milovanovic@gmail.com
goranm@diplomacy.edu
Step 1
• Install R
• Install RStudio IDE
Windows
• R installation: https://cran.r-project.org/bin/windows/base/
• RStudio installation: https://www.rstudio.com/products/rstudio/download/
Ubuntu (14.04.1-3 and similar…)
• R installation: https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on-
ubuntu-14-04
• Rstudio installation: https://www.rstudio.com/products/rstudio/download/
Intro to R for Data Science
Session 1: Getting to know R
Intro to R for Data Science
Session 1: Getting to know R
Step 2
• Get to know your RStudio IDE…
Intro to R for Data Science
Session 1: Getting to know R
Step 4
• Introducing the R ecosystem…
• RStudio: Tools -> Install Packages
Image source: The network structure of R packages on CRAN and BioConductor, Andrie de Vries & Joseph Rickert, Microsoft.
Intro to R for Data Science
Session 1: Getting to know R
CRAN: The Comprehensive R Archive Network
Intro to R for Data Science
Session 1: Getting to know R
Step 4
• Install something really useful, like:
> install.packages(“ggplot2”);
• NOTE: not all R packages are installed in this way; during the
course we will learn about different installation approaches.
> installed.packages() # alternative: > library()
> .libPaths()
> library(ggplot2);
 search(); # what is in the environment
> old.packages(); # what is old?
> update.packages(); # update everything (carefully!)
Intro to R for Data Science
Session 1: Getting to know R
Step 5
• Getting to know R!
• Session 1 Script: IntroR_Session1.R
• Data Set: rko_film_1930-1941.csv
# data source:
# http://www.stat.ufl.edu/~winner/datasets.html
# an adaptation of the original .dat file
Intro to R for Data Science
Session 1: Getting to know R
Step 6
• Readings for Session 2:
• The Art of R Programming, Norman Matloff, September 1, 2009:
http://heather.cs.ucdavis.edu/~matloff/132/NSPpart.pdf
Chapters 1 - 5
• Very useful:
• Inside R: http://www.inside-r.org/
• Quick R: http://www.statmethods.net/
• R-bloggers: http://www.r-bloggers.com/
Intro to R for Data Science
Session 1: Getting to know R
Introduction to R for Data Science :: Session 1

More Related Content

PDF
Introduction to Rstudio
PDF
Introduction to R for Data Science :: Session 4
PDF
Introduction to R for Data Science :: Session 3
PDF
Introduction to R for Data Science :: Session 2
PDF
Introduction to R for Data Science :: Session 8 [Intro to Text Mining in R, M...
PDF
Introduction to R for Data Science :: Session 6 [Linear Regression in R]
PDF
Introduction to R for Data Science :: Session 5 [Data Structuring: Strings in R]
PDF
Introduction to R for Data Science :: Session 7 [Multiple Linear Regression i...
Introduction to Rstudio
Introduction to R for Data Science :: Session 4
Introduction to R for Data Science :: Session 3
Introduction to R for Data Science :: Session 2
Introduction to R for Data Science :: Session 8 [Intro to Text Mining in R, M...
Introduction to R for Data Science :: Session 6 [Linear Regression in R]
Introduction to R for Data Science :: Session 5 [Data Structuring: Strings in R]
Introduction to R for Data Science :: Session 7 [Multiple Linear Regression i...

What's hot (20)

PDF
Introduction to Data Mining with R and Data Import/Export in R
PDF
Accessing R from Python using RPy2
PDF
Introduction into R for historians (part 3: examine and import data)
PDF
Introduction into R for historians (part 4: data manipulation)
PDF
RDataMining slides-text-mining-with-r
PDF
Managing large datasets in R – ff examples and concepts
PDF
useR! 2012 Talk
PPTX
Training in Analytics, R and Social Media Analytics
PPTX
An Introduction To Python - Lists, Part 1
PDF
Lineage-driven Fault Injection, SIGMOD'15
PDF
COMPUTER LABORATORY-4 LAB MANUAL BE COMPUTER ENGINEERING
PDF
Text mining and social network analysis of twitter data part 1
PPT
Extracting data from text documents using the regex
PDF
NumPy and SciPy for Data Mining and Data Analysis Including iPython, SciKits,...
PDF
Tutorial for Circular and Rectangular Manhattan plots
PPTX
Text analytics in Python and R with examples from Tobacco Control
PDF
Link Discovery Tutorial Part I: Efficiency
PDF
Link Discovery Tutorial Part II: Accuracy
PPTX
Hybrid acquisition of temporal scopes for rdf data
PPTX
EuroPython 2015 - Big Data with Python and Hadoop
Introduction to Data Mining with R and Data Import/Export in R
Accessing R from Python using RPy2
Introduction into R for historians (part 3: examine and import data)
Introduction into R for historians (part 4: data manipulation)
RDataMining slides-text-mining-with-r
Managing large datasets in R – ff examples and concepts
useR! 2012 Talk
Training in Analytics, R and Social Media Analytics
An Introduction To Python - Lists, Part 1
Lineage-driven Fault Injection, SIGMOD'15
COMPUTER LABORATORY-4 LAB MANUAL BE COMPUTER ENGINEERING
Text mining and social network analysis of twitter data part 1
Extracting data from text documents using the regex
NumPy and SciPy for Data Mining and Data Analysis Including iPython, SciKits,...
Tutorial for Circular and Rectangular Manhattan plots
Text analytics in Python and R with examples from Tobacco Control
Link Discovery Tutorial Part I: Efficiency
Link Discovery Tutorial Part II: Accuracy
Hybrid acquisition of temporal scopes for rdf data
EuroPython 2015 - Big Data with Python and Hadoop
Ad

Similar to Introduction to R for Data Science :: Session 1 (20)

PDF
R Programming Overview
PPTX
Intro to data science module 1 r
PDF
1 R Tutorial Introduction
PDF
GET STARTED WITH R FOR DATA SCIENCE
PPT
An introduction to R is a document useful
PPTX
Introduction to R
PDF
Introduction to R ajay Ohri
PDF
Unit1_Introduction to R.pdf
PDF
Introduction+to+R.pdf
PDF
Data analytics using R programming
PPTX
Introduction_to_R software powerpoint xx
PDF
R for the Rest of Us A Statistics Free Introduction David Keyes
PDF
Learn Business Analytics with R at edureka!
PPTX
R programming presentation
PDF
Business Analytics with R
PDF
Business Analytics with R
PDF
Using r
PDF
PPT - Introduction to R.pdf
PDF
R for the Rest of Us A Statistics Free Introduction David Keyes
PDF
R Programming Overview
Intro to data science module 1 r
1 R Tutorial Introduction
GET STARTED WITH R FOR DATA SCIENCE
An introduction to R is a document useful
Introduction to R
Introduction to R ajay Ohri
Unit1_Introduction to R.pdf
Introduction+to+R.pdf
Data analytics using R programming
Introduction_to_R software powerpoint xx
R for the Rest of Us A Statistics Free Introduction David Keyes
Learn Business Analytics with R at edureka!
R programming presentation
Business Analytics with R
Business Analytics with R
Using r
PPT - Introduction to R.pdf
R for the Rest of Us A Statistics Free Introduction David Keyes
Ad

More from Goran S. Milovanovic (20)

PDF
Uvod u R za Data Science :: Sesija 1 [Intro to R for Data Science :: Session 1]
PDF
Geneva Social Media Index - Report 2015 full report
PDF
Milovanović, G.S., Krstić, M. & Filipović, O. (2015). Kršenje homogenosti pre...
PDF
247113920-Cognitive-technologies-mapping-the-Internet-governance-debate
PDF
Učenje i viši kognitivni procesi 10. Simboličke funkcije, VI Deo: Rešavanje p...
PDF
Učenje i viši kognitivni procesi 9. Simboličke funkcije, V Deo: Rezonovanje u...
PDF
Učenje i viši kognitivni procesi 9. Simboličke funkcije, V Deo: Suđenje, heur...
PDF
Učenje i viši kognitivni procesi 8. Simboličke funkcije, IV Deo: Analogija i ...
PDF
Učenje i viši kognitivni procesi 9. Simboličke funkcije, III Deo: Kauzalnost,...
PDF
Učenje i viši kognitivni procesi 8. Simboličke funkcije, II Deo: Distribuiran...
PDF
Učenje i viši kognitivni procesi 8. Simboličke funkcije, II Deo: Konekcioniza...
PDF
Učenje i viši kognitivni procesi 7a. Simboličke funkcije, I Deo: Učenje kateg...
PDF
Učenje i viši kognitivni procesi 7. Simboličke funkcije, I Deo: Koncepti, kat...
PDF
Učenje i viši kognitivni procesi 7. Učenje, IV Deo: Neasocijativno učenje, ef...
PDF
Učenje i viši kognitivni procesi 6. Učenje, III Deo: Hernstejnov zakon slagan...
PDF
Učenje i viši kognitivni procesi 6. Učenje, III Deo: Instrumentalno učenje
PDF
Učenje i viši kognitivni procesi 5. Učenje, II Deo: Blokiranje, osenčavanje, ...
PDF
Učenje i viši kognitivni procesi 5. Učenje, II Deo: klasično uslovljavanje i ...
PDF
Učenje i viši kognitivni procesi 5. Učenje, I Deo
PDF
Učenje i viši kognitivni procesi 4a. Debata o racionalnosti, nastavak
Uvod u R za Data Science :: Sesija 1 [Intro to R for Data Science :: Session 1]
Geneva Social Media Index - Report 2015 full report
Milovanović, G.S., Krstić, M. & Filipović, O. (2015). Kršenje homogenosti pre...
247113920-Cognitive-technologies-mapping-the-Internet-governance-debate
Učenje i viši kognitivni procesi 10. Simboličke funkcije, VI Deo: Rešavanje p...
Učenje i viši kognitivni procesi 9. Simboličke funkcije, V Deo: Rezonovanje u...
Učenje i viši kognitivni procesi 9. Simboličke funkcije, V Deo: Suđenje, heur...
Učenje i viši kognitivni procesi 8. Simboličke funkcije, IV Deo: Analogija i ...
Učenje i viši kognitivni procesi 9. Simboličke funkcije, III Deo: Kauzalnost,...
Učenje i viši kognitivni procesi 8. Simboličke funkcije, II Deo: Distribuiran...
Učenje i viši kognitivni procesi 8. Simboličke funkcije, II Deo: Konekcioniza...
Učenje i viši kognitivni procesi 7a. Simboličke funkcije, I Deo: Učenje kateg...
Učenje i viši kognitivni procesi 7. Simboličke funkcije, I Deo: Koncepti, kat...
Učenje i viši kognitivni procesi 7. Učenje, IV Deo: Neasocijativno učenje, ef...
Učenje i viši kognitivni procesi 6. Učenje, III Deo: Hernstejnov zakon slagan...
Učenje i viši kognitivni procesi 6. Učenje, III Deo: Instrumentalno učenje
Učenje i viši kognitivni procesi 5. Učenje, II Deo: Blokiranje, osenčavanje, ...
Učenje i viši kognitivni procesi 5. Učenje, II Deo: klasično uslovljavanje i ...
Učenje i viši kognitivni procesi 5. Učenje, I Deo
Učenje i viši kognitivni procesi 4a. Debata o racionalnosti, nastavak

Recently uploaded (20)

PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
RMMM.pdf make it easy to upload and study
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Pharma ospi slides which help in ospi learning
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Institutional Correction lecture only . . .
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Module 4: Burden of Disease Tutorial Slides S2 2025
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
RMMM.pdf make it easy to upload and study
102 student loan defaulters named and shamed – Is someone you know on the list?
Pharma ospi slides which help in ospi learning
Computing-Curriculum for Schools in Ghana
Final Presentation General Medicine 03-08-2024.pptx
Microbial disease of the cardiovascular and lymphatic systems
A systematic review of self-coping strategies used by university students to ...
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Microbial diseases, their pathogenesis and prophylaxis
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Complications of Minimal Access Surgery at WLH
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
human mycosis Human fungal infections are called human mycosis..pptx
Institutional Correction lecture only . . .

Introduction to R for Data Science :: Session 1

  • 1. Introduction to R for Data Science Lecturers dipl. ing Branko Kovač Data Analyst at CUBE/Data Science Mentor at Springboard Institut za savremene nauke Data Science zajednica Srbije [email protected] dr Goran S. Milovanović Data Scientist at DiploFoundation Data Science zajednica Srbije [email protected] [email protected]
  • 2. Step 1 • Install R • Install RStudio IDE Windows • R installation: https://cran.r-project.org/bin/windows/base/ • RStudio installation: https://www.rstudio.com/products/rstudio/download/ Ubuntu (14.04.1-3 and similar…) • R installation: https://www.digitalocean.com/community/tutorials/how-to-set-up-r-on- ubuntu-14-04 • Rstudio installation: https://www.rstudio.com/products/rstudio/download/ Intro to R for Data Science Session 1: Getting to know R
  • 3. Intro to R for Data Science Session 1: Getting to know R Step 2 • Get to know your RStudio IDE…
  • 4. Intro to R for Data Science Session 1: Getting to know R
  • 5. Step 4 • Introducing the R ecosystem… • RStudio: Tools -> Install Packages Image source: The network structure of R packages on CRAN and BioConductor, Andrie de Vries & Joseph Rickert, Microsoft. Intro to R for Data Science Session 1: Getting to know R
  • 6. CRAN: The Comprehensive R Archive Network Intro to R for Data Science Session 1: Getting to know R
  • 7. Step 4 • Install something really useful, like: > install.packages(“ggplot2”); • NOTE: not all R packages are installed in this way; during the course we will learn about different installation approaches. > installed.packages() # alternative: > library() > .libPaths() > library(ggplot2);  search(); # what is in the environment > old.packages(); # what is old? > update.packages(); # update everything (carefully!) Intro to R for Data Science Session 1: Getting to know R
  • 8. Step 5 • Getting to know R! • Session 1 Script: IntroR_Session1.R • Data Set: rko_film_1930-1941.csv # data source: # http://www.stat.ufl.edu/~winner/datasets.html # an adaptation of the original .dat file Intro to R for Data Science Session 1: Getting to know R
  • 9. Step 6 • Readings for Session 2: • The Art of R Programming, Norman Matloff, September 1, 2009: http://heather.cs.ucdavis.edu/~matloff/132/NSPpart.pdf Chapters 1 - 5 • Very useful: • Inside R: http://www.inside-r.org/ • Quick R: http://www.statmethods.net/ • R-bloggers: http://www.r-bloggers.com/ Intro to R for Data Science Session 1: Getting to know R