SlideShare a Scribd company logo
Introduction to R
By: Dr. Preeti Jindal
Associate Professor
TIAS
What is R
• WHAT IS R?
• R is both a programming language and
software environment for statistical
computing, R is a free, open source software
program for statistical analysis.
How to Start R
• To get started, you will need to install two
pieces of software:
• • R, the actual programming language. –
Chose your operating system, and select the
most recent version, 4.2.1.
• • RStudio, an excellent IDE for working with R.
– Note, you must have R installed to use
RStudio. RStudio is simply an interface used to
interact with R.
• R is used both for software development and
data analysis.
Why use R
• Free and open source.
• Available for Windows, Macintosh, and Linux.
• Publication-quality graphs.
• Rivals (and in many cases, exceeds) SAS and Stata
in terms of availability of advanced statistical
methods and algorithms, through availability of
user-created packages.
• Packages for literate statistical programming -
weaving written reports and analysis code in one
document.
• WHAT IS RSTUDIO?
• RStudio is a free, open source IDE (integrated
development environment) for R. (You must
install R before you can install RStudio.) Its
interface is organized so that the user can clearly
view graphs, data tables, R code, and output all at
the same time. It also offers an Import-Wizard-
like feature that allows users to import CSV, Excel,
SAS (*.sas7bdat), SPSS (*.sav), and Stata (*.dta)
files into R without having to write the code to do
so.
WHAT FILE TYPES ARE TYPICALLY
ASSOCIATED WITH R?
• *.r - An R script.
• *.rmd - An R Markdown file.
• *.rnw - An R Sweave file.
• *.rds - A file containing a [single] R object; can be
created using saveRDS(), and loaded
using readRDS().
• *.rdata - A file containing one or more R objects
or workspaces; can be created using save(), and
loaded using load().
How can I access R?
• R and RStudio are free and open-source. To
install them on any computer, download the
software from their respective websites.
Package required
• Readxl: to import excel file in r-studio
• Readr: to import csv and text file in r-studio
• Rjson: to import JSON file in r-studio
• XML: to import html table in r-studio
• Haven: to import SAS file in r-studio
• Haven: to import SPSS file in r-studio

More Related Content

PDF
Introduction to R and R Studio
Rupak Roy
 
PPTX
Introduction to R.pptx
rehab517883
 
PPTX
R programming
Pooja Sharma
 
PPTX
R Programming and Lab - Unit I PPTX with examples
SARAVANA KUMAR SS
 
PPTX
R presentation
ShwetDadhaniya1
 
PDF
R Intro
koppenolski
 
PDF
PPT - Introduction to R.pdf
ssuser65af26
 
PPTX
R language
Kìshør Krîßh
 
Introduction to R and R Studio
Rupak Roy
 
Introduction to R.pptx
rehab517883
 
R programming
Pooja Sharma
 
R Programming and Lab - Unit I PPTX with examples
SARAVANA KUMAR SS
 
R presentation
ShwetDadhaniya1
 
R Intro
koppenolski
 
PPT - Introduction to R.pdf
ssuser65af26
 
R language
Kìshør Krîßh
 

Similar to Introduction to R.pptxvvvsjtajtaitsiysyisiysiy (20)

PPTX
Introduction to R Programming
hemasri56
 
PPTX
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
HaritikaChhatwal1
 
PPTX
R introduction
Teachers Mitraa
 
PDF
Use of Open Source Software Enhancing Curriculum | Developing Opportunities
Maurice Dawson
 
PPTX
R programming language
Keerti Verma
 
PDF
Unit1_Introduction to R.pdf
MDDidarulAlam15
 
DOCX
RStudio
Adeel Rasheed
 
DOCX
R Studio (Report)
Adeel Rasheed
 
PPTX
R as supporting tool for analytics and simulation
Alvaro Gil
 
PPTX
Data Analytics Domain
Multisoft Virtual Academy
 
PDF
R training
Hellen Gakuruh
 
PPTX
Introduction to R and Installation.pptx
Dhanshyam Mahavadi
 
PDF
Introduction to R software, by Leire ibaibarriaga
DTU - Technical University of Denmark
 
PPTX
R Brownbag Seminar 2.1
Muhammad Nabi Ahmad
 
PPTX
R_L1-Aug-2022.pptx
ShantilalBhayal1
 
PPTX
Introduction to r
gslicraf
 
PDF
Integrating R & Hadoop - Text Mining & Sentiment Analysis
Aravind Babu
 
PPTX
R programming Language , Rahul Singh
Ravi Basil
 
PPTX
Presentation.pptx read and learn and download
Shubhamyadav41303
 
PPTX
Getting Started with R
Sankhya_Analytics
 
Introduction to R Programming
hemasri56
 
BUSINESS ANALYTICS WITH R SOFTWARE DIAST
HaritikaChhatwal1
 
R introduction
Teachers Mitraa
 
Use of Open Source Software Enhancing Curriculum | Developing Opportunities
Maurice Dawson
 
R programming language
Keerti Verma
 
Unit1_Introduction to R.pdf
MDDidarulAlam15
 
RStudio
Adeel Rasheed
 
R Studio (Report)
Adeel Rasheed
 
R as supporting tool for analytics and simulation
Alvaro Gil
 
Data Analytics Domain
Multisoft Virtual Academy
 
R training
Hellen Gakuruh
 
Introduction to R and Installation.pptx
Dhanshyam Mahavadi
 
Introduction to R software, by Leire ibaibarriaga
DTU - Technical University of Denmark
 
R Brownbag Seminar 2.1
Muhammad Nabi Ahmad
 
R_L1-Aug-2022.pptx
ShantilalBhayal1
 
Introduction to r
gslicraf
 
Integrating R & Hadoop - Text Mining & Sentiment Analysis
Aravind Babu
 
R programming Language , Rahul Singh
Ravi Basil
 
Presentation.pptx read and learn and download
Shubhamyadav41303
 
Getting Started with R
Sankhya_Analytics
 
Ad

More from PrernaKhera3 (20)

PDF
PROJECT MANAGEMENT PPT PARAG SIR (1).pdf
PrernaKhera3
 
PPTX
TALENT ENGAGEMENT.pptxeytytytytytytytuyt
PrernaKhera3
 
PDF
negotiableinstruments-151028051702-lva1-app6891.pdf
PrernaKhera3
 
PPTX
narayanmurthyppt-170919060210 (1) (1).pptx
PrernaKhera3
 
PDF
PM PPT.pzkyzoyzzigzotsitsotsotsotzotzoyg
PrernaKhera3
 
PPTX
Entrepreneurship chapters unit 1 PPT.pptx
PrernaKhera3
 
PPTX
Human resources management for study material
PrernaKhera3
 
PPTX
7C’s Of Communication.pptxzjgziyzkysoydoydoydoyd
PrernaKhera3
 
PDF
DOC-20231219-WA0013..pdf
PrernaKhera3
 
PPTX
The ppt on business communication
PrernaKhera3
 
PPTX
MEMO WRITING(Dr. Poonam Dua).pptx
PrernaKhera3
 
PPTX
OFFICE ORDER (DR. POONAM DUA) (2).pptx
PrernaKhera3
 
PPTX
PROCESS OF LETTER WRITING.pptx
PrernaKhera3
 
PPTX
Pptfhaktsouspueouspue
PrernaKhera3
 
PDF
My presentation in communication
PrernaKhera3
 
PDF
Presentation related to business communication
PrernaKhera3
 
PDF
EM unit 1.pdf
PrernaKhera3
 
PDF
DOC-20230116-WA0015..pdf
PrernaKhera3
 
DOCX
marketingplanfornewtoothpastebrand-160328180635.docx
PrernaKhera3
 
PDF
DOC-20221226-WA0000..pdf
PrernaKhera3
 
PROJECT MANAGEMENT PPT PARAG SIR (1).pdf
PrernaKhera3
 
TALENT ENGAGEMENT.pptxeytytytytytytytuyt
PrernaKhera3
 
negotiableinstruments-151028051702-lva1-app6891.pdf
PrernaKhera3
 
narayanmurthyppt-170919060210 (1) (1).pptx
PrernaKhera3
 
PM PPT.pzkyzoyzzigzotsitsotsotsotzotzoyg
PrernaKhera3
 
Entrepreneurship chapters unit 1 PPT.pptx
PrernaKhera3
 
Human resources management for study material
PrernaKhera3
 
7C’s Of Communication.pptxzjgziyzkysoydoydoydoyd
PrernaKhera3
 
DOC-20231219-WA0013..pdf
PrernaKhera3
 
The ppt on business communication
PrernaKhera3
 
MEMO WRITING(Dr. Poonam Dua).pptx
PrernaKhera3
 
OFFICE ORDER (DR. POONAM DUA) (2).pptx
PrernaKhera3
 
PROCESS OF LETTER WRITING.pptx
PrernaKhera3
 
Pptfhaktsouspueouspue
PrernaKhera3
 
My presentation in communication
PrernaKhera3
 
Presentation related to business communication
PrernaKhera3
 
EM unit 1.pdf
PrernaKhera3
 
DOC-20230116-WA0015..pdf
PrernaKhera3
 
marketingplanfornewtoothpastebrand-160328180635.docx
PrernaKhera3
 
DOC-20221226-WA0000..pdf
PrernaKhera3
 
Ad

Recently uploaded (20)

PPTX
Mining Services and Iron Ore Transportation in India.pptx
Naaraayani Minerals Pvt.Ltd
 
PDF
MDR Services – 24x7 Managed Detection and Response
CyberNX Technologies Private Limited
 
PDF
2025 07 29 The Future, Backwards Agile 2025.pdf
Daniel Walsh
 
PDF
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
PDF
William Trowell - A Construction Project Manager
William Trowell
 
PPTX
How to best Address your professional Training Program - August 2025.pptx
PaulYoung221210
 
PPTX
Keynote: CATHOLIC UNIVERSITY: A PLACE OF CREATIVITY AND KNOWLEDGE
Alvaro Barbosa
 
PPTX
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
PDF
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
PPTX
Presentation - Business Intelligence Solutions 007.pptx
FBSPL
 
PPTX
Creating the Ultimate SOP Manual: Streamline, Standardize, and Scale
RUPAL AGARWAL
 
PPTX
Unlocking Creativity Top Adobe Tools for Content Creators Buy Adobe Software...
PI Software
 
PPTX
Financial Management for business management .pptx
Hasibullah Ahmadi
 
PDF
The Digital Culture Challenge; Bridging the Employee-Leadership Disconnect
Brian Solis
 
PDF
What are the steps to buy GitHub accounts safely?
d14405913
 
PPTX
Memorandum and articles of association explained.pptx
Keerthana Chinnathambi
 
PDF
Tariff Surcharge and Price Increase Decision
Joshua Gao
 
PDF
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
PPTX
Is Your Brand Ready for Expansion? A Strategic Guide to Scaling Successfully
RUPAL AGARWAL
 
PPTX
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 
Mining Services and Iron Ore Transportation in India.pptx
Naaraayani Minerals Pvt.Ltd
 
MDR Services – 24x7 Managed Detection and Response
CyberNX Technologies Private Limited
 
2025 07 29 The Future, Backwards Agile 2025.pdf
Daniel Walsh
 
Danielle Oliveira New Jersey - A Seasoned Lieutenant
Danielle Oliveira New Jersey
 
William Trowell - A Construction Project Manager
William Trowell
 
How to best Address your professional Training Program - August 2025.pptx
PaulYoung221210
 
Keynote: CATHOLIC UNIVERSITY: A PLACE OF CREATIVITY AND KNOWLEDGE
Alvaro Barbosa
 
Pakistan’s Leading Manpower Export Agencies for Qatar
Glassrooms Dubai
 
NewBase 26 July 2025 Energy News issue - 1806 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
Presentation - Business Intelligence Solutions 007.pptx
FBSPL
 
Creating the Ultimate SOP Manual: Streamline, Standardize, and Scale
RUPAL AGARWAL
 
Unlocking Creativity Top Adobe Tools for Content Creators Buy Adobe Software...
PI Software
 
Financial Management for business management .pptx
Hasibullah Ahmadi
 
The Digital Culture Challenge; Bridging the Employee-Leadership Disconnect
Brian Solis
 
What are the steps to buy GitHub accounts safely?
d14405913
 
Memorandum and articles of association explained.pptx
Keerthana Chinnathambi
 
Tariff Surcharge and Price Increase Decision
Joshua Gao
 
Withum Webinar - OBBBA: Tax Insights for Food and Consumer Brands
Withum
 
Is Your Brand Ready for Expansion? A Strategic Guide to Scaling Successfully
RUPAL AGARWAL
 
Certificate of Incorporation, Prospectus, Certificate of Commencement of Busi...
Keerthana Chinnathambi
 

Introduction to R.pptxvvvsjtajtaitsiysyisiysiy

  • 1. Introduction to R By: Dr. Preeti Jindal Associate Professor TIAS
  • 2. What is R • WHAT IS R? • R is both a programming language and software environment for statistical computing, R is a free, open source software program for statistical analysis.
  • 3. How to Start R • To get started, you will need to install two pieces of software: • • R, the actual programming language. – Chose your operating system, and select the most recent version, 4.2.1. • • RStudio, an excellent IDE for working with R. – Note, you must have R installed to use RStudio. RStudio is simply an interface used to interact with R.
  • 4. • R is used both for software development and data analysis.
  • 5. Why use R • Free and open source. • Available for Windows, Macintosh, and Linux. • Publication-quality graphs. • Rivals (and in many cases, exceeds) SAS and Stata in terms of availability of advanced statistical methods and algorithms, through availability of user-created packages. • Packages for literate statistical programming - weaving written reports and analysis code in one document.
  • 6. • WHAT IS RSTUDIO? • RStudio is a free, open source IDE (integrated development environment) for R. (You must install R before you can install RStudio.) Its interface is organized so that the user can clearly view graphs, data tables, R code, and output all at the same time. It also offers an Import-Wizard- like feature that allows users to import CSV, Excel, SAS (*.sas7bdat), SPSS (*.sav), and Stata (*.dta) files into R without having to write the code to do so.
  • 7. WHAT FILE TYPES ARE TYPICALLY ASSOCIATED WITH R? • *.r - An R script. • *.rmd - An R Markdown file. • *.rnw - An R Sweave file. • *.rds - A file containing a [single] R object; can be created using saveRDS(), and loaded using readRDS(). • *.rdata - A file containing one or more R objects or workspaces; can be created using save(), and loaded using load().
  • 8. How can I access R? • R and RStudio are free and open-source. To install them on any computer, download the software from their respective websites.
  • 9. Package required • Readxl: to import excel file in r-studio • Readr: to import csv and text file in r-studio • Rjson: to import JSON file in r-studio • XML: to import html table in r-studio • Haven: to import SAS file in r-studio • Haven: to import SPSS file in r-studio