SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Introduc)on	
  to	
  	
  
          R	
  and	
  RStudio	
  
                       Corey	
  S.	
  Sparks	
  
                Department	
  of	
  Demography	
  
         The	
  University	
  of	
  Texas	
  at	
  San	
  Antonio	
  
                    September	
  22,	
  2012	
  

Sponsored	
  by	
  the	
  UTSA	
  Department	
  of	
  Demography	
  
What	
  is	
  R?	
  
•  R	
  is	
  a	
  system	
  for	
  sta)s)cal	
  computa)on	
  and	
  
   graphics.	
  	
  
•  It	
  is	
  heavily	
  influenced	
  by	
  the	
  S	
  language	
  
•  R	
  was	
  ini)ally	
  wriJen	
  by	
  Ross	
  Ihaka	
  and	
  
   Robert	
  Gentleman	
  at	
  the	
  Department	
  of	
  
   Sta)s)cs	
  of	
  the	
  University	
  of	
  Auckland	
  in	
  
   Auckland,	
  New	
  Zealand.	
  
•  The	
  “R	
  Core	
  Team”	
  maintain	
  the	
  source	
  code	
  
   for	
  the	
  soPware	
  and	
  release	
  regular	
  updates	
  
What	
  is	
  R?	
  
•  The	
  R	
  soPware	
  contains	
  func)onality	
  for	
  a	
  
   large	
  number	
  of	
  sta)s)cal	
  procedures.	
  
•  Linear	
  and	
  generalized	
  linear	
  models	
  
•  Nonlinear	
  regression	
  models	
  
•  Time	
  series	
  analysis	
  
•  Classical	
  parametric	
  and	
  nonparametric	
  tests,	
  
   clustering	
  and	
  smoothing.	
  
What	
  is	
  R?	
  
•  In	
  addi)on,	
  the	
  R	
  project	
  is	
  added	
  to	
  by	
  many	
  
   of	
  its	
  users,	
  who	
  write	
  source	
  code	
  for	
  many	
  
   different	
  types	
  of	
  analy)cal	
  procedures	
  
•  Everything	
  from	
  analy)cal	
  chemistry	
  to	
  
   epidemiology	
  to	
  linguis)cs	
  	
  
    –  OPen	
  code	
  is	
  wriJen	
  in	
  FORTRAN	
  or	
  C++	
  and	
  
       ported	
  to	
  R	
  
    –  Currently	
  4,045	
  different	
  user-­‐wriJen	
  libraries	
  
       available	
  
Where	
  can	
  I	
  run	
  R? 	
  	
  
•  R	
  runs	
  on	
  a	
  variety	
  of	
  plaorms	
  
    –  Windows	
  
    –  Mac	
  OS	
  X	
  
    –  Linux	
  
    –  Unix	
  
•  32	
  and	
  64	
  bit	
  installa)ons	
  
•  Support	
  for	
  parallel	
  compu)ng	
  and	
  clusters	
  
Revolu)on	
  R	
  

•  Commercial	
  version	
  of	
  R	
  soPware	
  
•  Revolu)on	
  R	
  is	
  compiled	
  for	
  mul)-­‐core	
  
   support	
  
•  Allows	
  for	
  a	
  marked	
  reduc)on	
  in	
  computa)on	
  
   )mes	
  because	
  of	
  op)mized	
  code	
  and	
  certain	
  
   math	
  system	
  libraries	
  (BLAS,	
  ATLAS,	
  etc)	
  
What	
  makes	
  R	
  so	
  great?	
  
•  Open	
  source	
  
•  User	
  community	
  
•  Cudng	
  edge	
  development	
  
•  Integra)on	
  with	
  low	
  level	
  programming	
  
   languages	
  
•  Flexibility	
  
•  Mul)-­‐language	
  support	
  
The	
  R	
  Interface	
  
•    Depends	
  on	
  where	
  you	
  run	
  it	
  
•    Different	
  OS’s	
  have	
  very	
  different	
  interfaces	
  
•    R	
  is	
  inherently	
  command	
  line-­‐oriented	
  
•    Several	
  GUIs	
  have	
  been	
  wriJen	
  
RStudio	
  
•  Rela)vely	
  recent	
  incarna)on	
  of	
  an	
  R	
  IDE	
  
•  Open	
  source	
  	
  
•  Desktop	
  and	
  server	
  versions	
  

•  Lots	
  of	
  cool	
  features	
  
    –  syntax	
  highligh)ng	
  
    –  workspace	
  and	
  data	
  browser/editor	
  
    –  integrated	
  help	
  system	
  
    –  integrated	
  history	
  
    –  runs	
  on	
  all	
  OS’s	
  
RStudio	
  Screen	
  
Code	
  editor	
  
R	
  command	
  console	
  
Workspace	
  browser	
  
Command	
  History	
  
Package	
  manager	
  
File	
  manager	
  
Plot	
  manager	
  
Integrated	
  help	
  system	
  
Addi)onal	
  Cool	
  things	
  
•  Mul)ple	
  project	
  management	
  
   –  Keep	
  mul)ple	
  code	
  files	
  for	
  separate	
  projects	
  
•  Lots	
  of	
  keyboard	
  shortcuts	
  
•  Generate	
  HTML	
  reports	
  with	
  knitr	
  
•  Customized	
  IDE	
  
R meet up slides.pptx

Weitere ähnliche Inhalte

Andere mochten auch

Andere mochten auch (9)

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

Ähnlich wie R meet up slides.pptx

Ähnlich wie R meet up slides.pptx (20)

R introduction
R introductionR introduction
R introduction
 
Introduction to R Programming
Introduction to R ProgrammingIntroduction to R Programming
Introduction to R Programming
 
R language
R languageR language
R language
 
R programming
R programmingR programming
R programming
 
Introduction to R software, by Leire ibaibarriaga
Introduction to R software, by Leire ibaibarriaga Introduction to R software, by Leire ibaibarriaga
Introduction to R software, by Leire ibaibarriaga
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
Big data analytics with R tool.pptx
Big data analytics with R tool.pptxBig data analytics with R tool.pptx
Big data analytics with R tool.pptx
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of R
 
R programming Language , Rahul Singh
R programming Language , Rahul SinghR programming Language , Rahul Singh
R programming Language , Rahul Singh
 
Introduction to R.pptx
Introduction to R.pptxIntroduction to R.pptx
Introduction to R.pptx
 
Class ppt intro to r
Class ppt intro to rClass ppt intro to r
Class ppt intro to r
 
COMPUTER LANGUAGES AND THERE DIFFERENCE
COMPUTER LANGUAGES AND THERE DIFFERENCE COMPUTER LANGUAGES AND THERE DIFFERENCE
COMPUTER LANGUAGES AND THERE DIFFERENCE
 
How community software supports language documentation and data analysis
How community software supports language documentation and data analysisHow community software supports language documentation and data analysis
How community software supports language documentation and data analysis
 
Introduction to R Language
Introduction to R LanguageIntroduction to R Language
Introduction to R Language
 
In-Database Analytics Deep Dive with Teradata and Revolution
In-Database Analytics Deep Dive with Teradata and RevolutionIn-Database Analytics Deep Dive with Teradata and Revolution
In-Database Analytics Deep Dive with Teradata and Revolution
 
R programming language
R programming languageR programming language
R programming language
 
R programming
R programmingR programming
R programming
 
R as supporting tool for analytics and simulation
R as supporting tool for analytics and simulationR as supporting tool for analytics and simulation
R as supporting tool for analytics and simulation
 
Introduction to basic statistics
Introduction to basic statisticsIntroduction to basic statistics
Introduction to basic statistics
 
Evolution of Programming Languages.pdf
Evolution of Programming Languages.pdfEvolution of Programming Languages.pdf
Evolution of Programming Languages.pdf
 

Mehr von Corey Sparks

Mehr von Corey Sparks (10)

Dem 7263 fall 2015 Spatial GLM's
Dem 7263 fall 2015 Spatial GLM'sDem 7263 fall 2015 Spatial GLM's
Dem 7263 fall 2015 Spatial GLM's
 
Dem 7263 fall 2015 spatially autoregressive models 1
Dem 7263 fall 2015   spatially autoregressive models 1Dem 7263 fall 2015   spatially autoregressive models 1
Dem 7263 fall 2015 spatially autoregressive models 1
 
Demography 7263 fall 2015 spatially autoregressive models 2
Demography 7263 fall 2015 spatially autoregressive models 2Demography 7263 fall 2015 spatially autoregressive models 2
Demography 7263 fall 2015 spatially autoregressive models 2
 
Spatial statistics presentation Texas A&M Census RDC
Spatial statistics presentation Texas A&M Census RDCSpatial statistics presentation Texas A&M Census RDC
Spatial statistics presentation Texas A&M Census RDC
 
Sparks & Sparks Spatiotemporal persistence of residential segregation SSSA 2013
Sparks & Sparks Spatiotemporal persistence of residential segregation SSSA 2013Sparks & Sparks Spatiotemporal persistence of residential segregation SSSA 2013
Sparks & Sparks Spatiotemporal persistence of residential segregation SSSA 2013
 
Sparks and Valencia PAA 2014 session107
Sparks and Valencia PAA 2014 session107Sparks and Valencia PAA 2014 session107
Sparks and Valencia PAA 2014 session107
 
Infant mortality paper
Infant mortality paperInfant mortality paper
Infant mortality paper
 
Campbell sparkspaa12
Campbell sparkspaa12Campbell sparkspaa12
Campbell sparkspaa12
 
San Antonio Food Insecurity Assessment
San Antonio Food Insecurity AssessmentSan Antonio Food Insecurity Assessment
San Antonio Food Insecurity Assessment
 
A socio ecological model of injury mortality in Texas using Bayesian modesl
A socio ecological model of injury mortality in Texas using Bayesian modeslA socio ecological model of injury mortality in Texas using Bayesian modesl
A socio ecological model of injury mortality in Texas using Bayesian modesl
 

Kürzlich hochgeladen

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Kürzlich hochgeladen (20)

Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 

R meet up slides.pptx

  • 1. Introduc)on  to     R  and  RStudio   Corey  S.  Sparks   Department  of  Demography   The  University  of  Texas  at  San  Antonio   September  22,  2012   Sponsored  by  the  UTSA  Department  of  Demography  
  • 2. What  is  R?   •  R  is  a  system  for  sta)s)cal  computa)on  and   graphics.     •  It  is  heavily  influenced  by  the  S  language   •  R  was  ini)ally  wriJen  by  Ross  Ihaka  and   Robert  Gentleman  at  the  Department  of   Sta)s)cs  of  the  University  of  Auckland  in   Auckland,  New  Zealand.   •  The  “R  Core  Team”  maintain  the  source  code   for  the  soPware  and  release  regular  updates  
  • 3. What  is  R?   •  The  R  soPware  contains  func)onality  for  a   large  number  of  sta)s)cal  procedures.   •  Linear  and  generalized  linear  models   •  Nonlinear  regression  models   •  Time  series  analysis   •  Classical  parametric  and  nonparametric  tests,   clustering  and  smoothing.  
  • 4. What  is  R?   •  In  addi)on,  the  R  project  is  added  to  by  many   of  its  users,  who  write  source  code  for  many   different  types  of  analy)cal  procedures   •  Everything  from  analy)cal  chemistry  to   epidemiology  to  linguis)cs     –  OPen  code  is  wriJen  in  FORTRAN  or  C++  and   ported  to  R   –  Currently  4,045  different  user-­‐wriJen  libraries   available  
  • 5. Where  can  I  run  R?     •  R  runs  on  a  variety  of  plaorms   –  Windows   –  Mac  OS  X   –  Linux   –  Unix   •  32  and  64  bit  installa)ons   •  Support  for  parallel  compu)ng  and  clusters  
  • 6. Revolu)on  R   •  Commercial  version  of  R  soPware   •  Revolu)on  R  is  compiled  for  mul)-­‐core   support   •  Allows  for  a  marked  reduc)on  in  computa)on   )mes  because  of  op)mized  code  and  certain   math  system  libraries  (BLAS,  ATLAS,  etc)  
  • 7. What  makes  R  so  great?   •  Open  source   •  User  community   •  Cudng  edge  development   •  Integra)on  with  low  level  programming   languages   •  Flexibility   •  Mul)-­‐language  support  
  • 8. The  R  Interface   •  Depends  on  where  you  run  it   •  Different  OS’s  have  very  different  interfaces   •  R  is  inherently  command  line-­‐oriented   •  Several  GUIs  have  been  wriJen  
  • 9. RStudio   •  Rela)vely  recent  incarna)on  of  an  R  IDE   •  Open  source     •  Desktop  and  server  versions   •  Lots  of  cool  features   –  syntax  highligh)ng   –  workspace  and  data  browser/editor   –  integrated  help  system   –  integrated  history   –  runs  on  all  OS’s  
  • 19. Addi)onal  Cool  things   •  Mul)ple  project  management   –  Keep  mul)ple  code  files  for  separate  projects   •  Lots  of  keyboard  shortcuts   •  Generate  HTML  reports  with  knitr   •  Customized  IDE