SlideShare a Scribd company logo
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Introduction into R
Richard L. Zijdeman
28 May 2015
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
1 Quantitave research methods
2 Statistical Software
3 Introducing R vocabulary
4 Getting help
5 Installing R and RStudio
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Quantitave research methods
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Why
To answer descriptive and explanatory questions on populations
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Workflow: PTE
problem (research question)
theory (hypothesis)
empirical test . . . with loops between T-E and P-T-E
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Research Questions
descriptive (to what extent. . . )
comparative (comparing two entities)
trend (comparison over time)
explanatory (focus on mechanism at hand)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Theory
deductive reasoning
explanans
general mechanism
condition
explanandum (hypothesis)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Empirical test
sample vs. population
random vs. stratified samples
testing technique, e.g.:
T-test, correlation, regression
Software required for faster analysis
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Statistical Software
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
The dangers of analysing with spreadsheets
(e.g. MS Excel)
tempting to input and clean data in the same sheet
difficult to track cleaning rules
defaults mess up your data (e.g. 01200 -> 1200)
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Why use syntax (scripting)
Efficiency (really)
Quality (error checking)
Replicatability
Communication
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R
R is open source, which is good and bad:
anybody can contribute (check, improve, create code)
free of charge
but: R depends on collective action
cannot ‘demand’ support
sprawl of packages
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
RStudio
browser for R
provides easy access to:
scripts
data
plots
manual
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Introducing R vocabulary
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R script
* series of commands to manipulate data
* always save your script, NEVER change your data
original data + script = reproducable research
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
R Session
* contains scripts, data, functions
* can be saved 'workspace image'
* prefer not to:
+ sessions are usually cluttered
+ only useful if running script takes time
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Assignment
* 'attach' values to an object (e.g. a variable)
x <- 5
y <- 4
z <- x*y
print(z)
## [1] 20
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Assignment II
Try and imagine the potential of assignment
x <- c(4, 3, 2, 1, 0, 27, 34, 35)
# 'c' for concatenate values
y <- -1
z <- x*y
print(z)
## [1] -4 -3 -2 -1 0 -27 -34 -35
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Data.frame
basically a table
contains columns (variables)
contains rows (cases)
“flat table” in Kees’ terminology
my.df <- data.frame(x,z)
str(my.df) # show STRucture
## 'data.frame': 8 obs. of 2 variables:
## $ x: num 4 3 2 1 0 27 34 35
## $ z: num -4 -3 -2 -1 0 -27 -34 -35
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Packages and libraries
base R (core product)
additional packages
CRAN repository
spread through ‘mirrors’
choose a local, but active mirror
Github
packages not on CRAN
development versions of CRAN libraries
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Getting help
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Build-in help: “?”
?[function] / ?[package]
e.g. “?plot” or “?graphics”
check the index for user guides and vignettes
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Cran website
Manuals
R FAQ
R Journal
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Online communities
Stackoverflow
Instance of Stackexchange
Reputation based Q&A
Specific lists for packages, e.g.:
ggplot2
R-sig-mixed-models
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Asking a question Getting an answer
Search the web: others must have had this problem too
If you raise a question:
be polite
be concise
short background
replicatable example
debrief your efforts sofar
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Installing R and RStudio
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
Download R
Instructions via http://www.r-project.org
Choose a CRAN mirror
http://cran.r-project.org/mirrors.html
close, but active too!
Romania hasn’t gone (yet!)
Click on ‘Download R for Windows’
Follow usual installation procedure
Double click on R
You should now have a working session!
Close the session, do not save workspace image
Richard L. Zijdeman Introduction into R
Quantitave research methods
Statistical Software
Introducing R vocabulary
Getting help
Installing R and RStudio
RStudio
RStudio is found on http://www.rstudio.com
Download the version for your OS (e.g. windows)
http://www.rstudio.com/products/rstudio/download/
Install by double clicking on the downloaded file
Start RStudio by double clicking on the icon
You do not need to start R, before starting RStudio
Richard L. Zijdeman Introduction into R

More Related Content

What's hot

R tutorial
R tutorialR tutorial
R tutorial
Richard Vidgen
 
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results RevealedIs Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results RevealedRevolution Analytics
 
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Big Data Spain
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of R
AnalyticsWeek
 
Introduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing EnvironmentIntroduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing Environment
izahn
 
1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r
Simple Research
 
Why R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformWhy R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics Platform
Syracuse University
 
An Introduction to Spark with Scala
An Introduction to Spark with ScalaAn Introduction to Spark with Scala
An Introduction to Spark with Scala
Chetan Khatri
 
R for data analytics
R for data analyticsR for data analytics
R for data analytics
VijayMohan Vasu
 
R program
R programR program
R program
genegeek
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)Ankit Rathi
 
R programming Language , Rahul Singh
R programming Language , Rahul SinghR programming Language , Rahul Singh
R programming Language , Rahul Singh
Ravi Basil
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with R
Great Wide Open
 
LD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and toolsLD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and tools
Vrije Universiteit Amsterdam
 
GraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communitiesGraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communitiesPaco Nathan
 
Big data analytics using R
Big data analytics using RBig data analytics using R
Big data analytics using R
Karthik Padmanabhan ( MLE℠)
 
Introducing The R Software
Introducing The R Software  Introducing The R Software
Introducing The R Software
Kamarul Imran
 
Hybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf dataHybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf data
Anisa Rula
 
Democratizing Big Semantic Data management
Democratizing Big Semantic Data managementDemocratizing Big Semantic Data management
Democratizing Big Semantic Data management
WU (Vienna University of Economics and Business)
 
Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013
Revolution Analytics
 

What's hot (20)

R tutorial
R tutorialR tutorial
R tutorial
 
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results RevealedIs Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
Is Revolution R Enterprise Faster than SAS? Benchmarking Results Revealed
 
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
Workshop - Hadoop + R by CARLOS GIL BELLOSTA at Big Data Spain 2013
 
The History and Use of R
The History and Use of RThe History and Use of R
The History and Use of R
 
Introduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing EnvironmentIntroduction to the R Statistical Computing Environment
Introduction to the R Statistical Computing Environment
 
1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r1.3 introduction to R language, importing dataset in r, data exploration in r
1.3 introduction to R language, importing dataset in r, data exploration in r
 
Why R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics PlatformWhy R? A Brief Introduction to the Open Source Statistics Platform
Why R? A Brief Introduction to the Open Source Statistics Platform
 
An Introduction to Spark with Scala
An Introduction to Spark with ScalaAn Introduction to Spark with Scala
An Introduction to Spark with Scala
 
R for data analytics
R for data analyticsR for data analytics
R for data analytics
 
R program
R programR program
R program
 
final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)final_copy_camera_ready_paper (7)
final_copy_camera_ready_paper (7)
 
R programming Language , Rahul Singh
R programming Language , Rahul SinghR programming Language , Rahul Singh
R programming Language , Rahul Singh
 
Big Data Analytics with R
Big Data Analytics with RBig Data Analytics with R
Big Data Analytics with R
 
LD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and toolsLD4KD 2015 - Demos and tools
LD4KD 2015 - Demos and tools
 
GraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communitiesGraphX: Graph analytics for insights about developer communities
GraphX: Graph analytics for insights about developer communities
 
Big data analytics using R
Big data analytics using RBig data analytics using R
Big data analytics using R
 
Introducing The R Software
Introducing The R Software  Introducing The R Software
Introducing The R Software
 
Hybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf dataHybrid acquisition of temporal scopes for rdf data
Hybrid acquisition of temporal scopes for rdf data
 
Democratizing Big Semantic Data management
Democratizing Big Semantic Data managementDemocratizing Big Semantic Data management
Democratizing Big Semantic Data management
 
Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013Revolution R Enterprise - Portland R User Group, November 2013
Revolution R Enterprise - Portland R User Group, November 2013
 

Viewers also liked

Historical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemesHistorical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemes
Richard Zijdeman
 
Mulai melangkah dengan Node.js
Mulai melangkah dengan Node.jsMulai melangkah dengan Node.js
Mulai melangkah dengan Node.js
Mohammad Anwari
 
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINTTUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
PT Lotus Indah Textile Industries
 
Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02
Mohammad Anwari
 
PortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSBPortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSB
vargy
 
En game hacking
En game hackingEn game hacking
En game hacking
Rahmad Kurniawan
 
Macam2 sertifikasi linux
Macam2 sertifikasi linuxMacam2 sertifikasi linux
Macam2 sertifikasi linux
sabtolinux
 
Laporan praktikum jarkom
Laporan praktikum jarkomLaporan praktikum jarkom
Laporan praktikum jarkom
Deprilana Ego Prakasa
 
Skalabilitas Aplikasi Web
Skalabilitas Aplikasi WebSkalabilitas Aplikasi Web
Skalabilitas Aplikasi Web
Mohammad Anwari
 
Panduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracerPanduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracer
vianovian
 
OpenOffice.Org Impress Tutorial
OpenOffice.Org Impress TutorialOpenOffice.Org Impress Tutorial
OpenOffice.Org Impress Tutorial
vargy
 
Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11
glynnfoster
 
Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013
Wahyu Nasution
 
FOSS and Linux
FOSS and LinuxFOSS and Linux
FOSS and Linux
vargy
 

Viewers also liked (20)

Historical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemesHistorical occupational classification and occupational stratification schemes
Historical occupational classification and occupational stratification schemes
 
Mulai melangkah dengan Node.js
Mulai melangkah dengan Node.jsMulai melangkah dengan Node.js
Mulai melangkah dengan Node.js
 
Lokakarya penerjemah blank on 9.0
Lokakarya penerjemah blank on 9.0Lokakarya penerjemah blank on 9.0
Lokakarya penerjemah blank on 9.0
 
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINTTUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
TUTORIAL INSTALASI LIBREOFFICE FOR LINUX MINT
 
Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02Domain name system dinamis dengan protokol dinamid versi 1.02
Domain name system dinamis dengan protokol dinamid versi 1.02
 
PortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSBPortableApps on Fedora 10 LiveUSB
PortableApps on Fedora 10 LiveUSB
 
Debian Tutorial
Debian TutorialDebian Tutorial
Debian Tutorial
 
Pemaketan blankon-ii
Pemaketan blankon-iiPemaketan blankon-ii
Pemaketan blankon-ii
 
Database optimization
Database optimizationDatabase optimization
Database optimization
 
En game hacking
En game hackingEn game hacking
En game hacking
 
Pemaketan blankon-i
Pemaketan blankon-iPemaketan blankon-i
Pemaketan blankon-i
 
Database optimization 2
Database optimization 2Database optimization 2
Database optimization 2
 
Macam2 sertifikasi linux
Macam2 sertifikasi linuxMacam2 sertifikasi linux
Macam2 sertifikasi linux
 
Laporan praktikum jarkom
Laporan praktikum jarkomLaporan praktikum jarkom
Laporan praktikum jarkom
 
Skalabilitas Aplikasi Web
Skalabilitas Aplikasi WebSkalabilitas Aplikasi Web
Skalabilitas Aplikasi Web
 
Panduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracerPanduan praktikum jaringan & packet tracer
Panduan praktikum jaringan & packet tracer
 
OpenOffice.Org Impress Tutorial
OpenOffice.Org Impress TutorialOpenOffice.Org Impress Tutorial
OpenOffice.Org Impress Tutorial
 
Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11Best Practices with IPS on Oracle Solaris 11
Best Practices with IPS on Oracle Solaris 11
 
Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013Ft tx presentation to telkom 25092013
Ft tx presentation to telkom 25092013
 
FOSS and Linux
FOSS and LinuxFOSS and Linux
FOSS and Linux
 

Similar to Introduction into R for historians (part 1: introduction)

R programming for psychometrics
R programming for psychometricsR programming for psychometrics
R programming for psychometrics
Diane Talley
 
R and Data Science
R and Data ScienceR and Data Science
R and Data Science
Revolution Analytics
 
R crash course
R crash courseR crash course
R crash course
Tomislav Hengl
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
Sean Davis
 
How to get started with R programming
How to get started with R programmingHow to get started with R programming
How to get started with R programming
Ramon Salazar
 
Unit1_Introduction to R.pdf
Unit1_Introduction to R.pdfUnit1_Introduction to R.pdf
Unit1_Introduction to R.pdf
MDDidarulAlam15
 
Lecture_R.ppt
Lecture_R.pptLecture_R.ppt
Lecture_R.ppt
Abebe334138
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document useful
ssuser3c3f88
 
The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;
ppvora
 
R programming
R programmingR programming
R programming
TIB Academy
 
Best corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiBest corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbai
Unmesh Baile
 
Revolution Analytics
Revolution AnalyticsRevolution Analytics
Revolution Analyticstempledf
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!
Edureka!
 
R and Rcmdr Statistical Software
R and Rcmdr Statistical SoftwareR and Rcmdr Statistical Software
R and Rcmdr Statistical Software
arttan2001
 
Types Working for You, Not Against You
Types Working for You, Not Against YouTypes Working for You, Not Against You
Types Working for You, Not Against You
C4Media
 
R and Python, A Code Demo
R and Python, A Code DemoR and Python, A Code Demo
R and Python, A Code Demo
Vineet Jaiswal
 
High Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and HadoopHigh Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and Hadoop
Revolution Analytics
 
PPT - Introduction to R.pdf
PPT - Introduction to R.pdfPPT - Introduction to R.pdf
PPT - Introduction to R.pdf
ssuser65af26
 
DATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxDATA MINING USING R (1).pptx
DATA MINING USING R (1).pptx
myworld93
 
Data science : R Basics Harvard University
Data science : R Basics Harvard UniversityData science : R Basics Harvard University
Data science : R Basics Harvard University
MrMoliya
 

Similar to Introduction into R for historians (part 1: introduction) (20)

R programming for psychometrics
R programming for psychometricsR programming for psychometrics
R programming for psychometrics
 
R and Data Science
R and Data ScienceR and Data Science
R and Data Science
 
R crash course
R crash courseR crash course
R crash course
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
How to get started with R programming
How to get started with R programmingHow to get started with R programming
How to get started with R programming
 
Unit1_Introduction to R.pdf
Unit1_Introduction to R.pdfUnit1_Introduction to R.pdf
Unit1_Introduction to R.pdf
 
Lecture_R.ppt
Lecture_R.pptLecture_R.ppt
Lecture_R.ppt
 
An introduction to R is a document useful
An introduction to R is a document usefulAn introduction to R is a document useful
An introduction to R is a document useful
 
The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;The Statistical Significance of &quot;R&quot;
The Statistical Significance of &quot;R&quot;
 
R programming
R programmingR programming
R programming
 
Best corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbaiBest corporate-r-programming-training-in-mumbai
Best corporate-r-programming-training-in-mumbai
 
Revolution Analytics
Revolution AnalyticsRevolution Analytics
Revolution Analytics
 
Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!Learn Business Analytics with R at edureka!
Learn Business Analytics with R at edureka!
 
R and Rcmdr Statistical Software
R and Rcmdr Statistical SoftwareR and Rcmdr Statistical Software
R and Rcmdr Statistical Software
 
Types Working for You, Not Against You
Types Working for You, Not Against YouTypes Working for You, Not Against You
Types Working for You, Not Against You
 
R and Python, A Code Demo
R and Python, A Code DemoR and Python, A Code Demo
R and Python, A Code Demo
 
High Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and HadoopHigh Performance Predictive Analytics in R and Hadoop
High Performance Predictive Analytics in R and Hadoop
 
PPT - Introduction to R.pdf
PPT - Introduction to R.pdfPPT - Introduction to R.pdf
PPT - Introduction to R.pdf
 
DATA MINING USING R (1).pptx
DATA MINING USING R (1).pptxDATA MINING USING R (1).pptx
DATA MINING USING R (1).pptx
 
Data science : R Basics Harvard University
Data science : R Basics Harvard UniversityData science : R Basics Harvard University
Data science : R Basics Harvard University
 

More from Richard Zijdeman

Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven
Richard Zijdeman
 
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Richard Zijdeman
 
grlc. store, share and run sparql queries
grlc. store, share and run sparql queriesgrlc. store, share and run sparql queries
grlc. store, share and run sparql queries
Richard Zijdeman
 
Rijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshopRijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshop
Richard Zijdeman
 
Data legend dh_benelux_2017.key
Data legend dh_benelux_2017.keyData legend dh_benelux_2017.key
Data legend dh_benelux_2017.key
Richard Zijdeman
 
Toogdag 2017
Toogdag 2017Toogdag 2017
Toogdag 2017
Richard Zijdeman
 
Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010
Richard Zijdeman
 
Advancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open DataAdvancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open Data
Richard Zijdeman
 
work in a globalized world
work in a globalized worldwork in a globalized world
work in a globalized world
Richard Zijdeman
 
The Structured Data Hub in 2019
The Structured Data Hub in 2019The Structured Data Hub in 2019
The Structured Data Hub in 2019
Richard Zijdeman
 
Examples of digital history at the IISH
Examples of digital history at the IISHExamples of digital history at the IISH
Examples of digital history at the IISH
Richard Zijdeman
 
Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)
Richard Zijdeman
 
Using HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupationsUsing HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupations
Richard Zijdeman
 
Csdh sbg clariah_intr01
Csdh sbg clariah_intr01Csdh sbg clariah_intr01
Csdh sbg clariah_intr01
Richard Zijdeman
 

More from Richard Zijdeman (14)

Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven Linked Data: Een extra ontstluitingslaag op archieven
Linked Data: Een extra ontstluitingslaag op archieven
 
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
Linked Open Data: Combining Data for the Social Sciences and Humanities (and ...
 
grlc. store, share and run sparql queries
grlc. store, share and run sparql queriesgrlc. store, share and run sparql queries
grlc. store, share and run sparql queries
 
Rijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshopRijpma's Catasto meets SPARQL dhb2017_workshop
Rijpma's Catasto meets SPARQL dhb2017_workshop
 
Data legend dh_benelux_2017.key
Data legend dh_benelux_2017.keyData legend dh_benelux_2017.key
Data legend dh_benelux_2017.key
 
Toogdag 2017
Toogdag 2017Toogdag 2017
Toogdag 2017
 
Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010Labour force participation of married women, US 1860-2010
Labour force participation of married women, US 1860-2010
 
Advancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open DataAdvancing the comparability of occupational data through Linked Open Data
Advancing the comparability of occupational data through Linked Open Data
 
work in a globalized world
work in a globalized worldwork in a globalized world
work in a globalized world
 
The Structured Data Hub in 2019
The Structured Data Hub in 2019The Structured Data Hub in 2019
The Structured Data Hub in 2019
 
Examples of digital history at the IISH
Examples of digital history at the IISHExamples of digital history at the IISH
Examples of digital history at the IISH
 
Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)Historical occupational classification and stratification schemes (lecture)
Historical occupational classification and stratification schemes (lecture)
 
Using HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupationsUsing HISCO and HISCAM to code and analyze occupations
Using HISCO and HISCAM to code and analyze occupations
 
Csdh sbg clariah_intr01
Csdh sbg clariah_intr01Csdh sbg clariah_intr01
Csdh sbg clariah_intr01
 

Recently uploaded

Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
AnirbanRoy608946
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Enterprise Wired
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
eddie19851
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
ahzuo
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
g4dpvqap0
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
haila53
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Subhajit Sahu
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
mzpolocfi
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
slg6lamcq
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
GetInData
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
v3tuleee
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
javier ramirez
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
John Andrews
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
Timothy Spann
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
AbhimanyuSinha9
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
dwreak4tg
 

Recently uploaded (20)

Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptxData_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
Data_and_Analytics_Essentials_Architect_an_Analytics_Platform.pptx
 
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdfUnleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
Unleashing the Power of Data_ Choosing a Trusted Analytics Platform.pdf
 
Nanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdfNanandann Nilekani's ppt On India's .pdf
Nanandann Nilekani's ppt On India's .pdf
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
一比一原版(CBU毕业证)卡普顿大学毕业证如何办理
 
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
一比一原版(爱大毕业证书)爱丁堡大学毕业证如何办理
 
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdfCh03-Managing the Object-Oriented Information Systems Project a.pdf
Ch03-Managing the Object-Oriented Information Systems Project a.pdf
 
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
Algorithmic optimizations for Dynamic Levelwise PageRank (from STICD) : SHORT...
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
一比一原版(Dalhousie毕业证书)达尔豪斯大学毕业证如何办理
 
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
一比一原版(Adelaide毕业证书)阿德莱德大学毕业证如何办理
 
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdfEnhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
Enhanced Enterprise Intelligence with your personal AI Data Copilot.pdf
 
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理一比一原版(UofS毕业证书)萨省大学毕业证如何办理
一比一原版(UofS毕业证书)萨省大学毕业证如何办理
 
The Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series DatabaseThe Building Blocks of QuestDB, a Time Series Database
The Building Blocks of QuestDB, a Time Series Database
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
Chatty Kathy - UNC Bootcamp Final Project Presentation - Final Version - 5.23...
 
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
06-04-2024 - NYC Tech Week - Discussion on Vector Databases, Unstructured Dat...
 
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...Best best suvichar in gujarati english meaning of this sentence as Silk road ...
Best best suvichar in gujarati english meaning of this sentence as Silk road ...
 
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
一比一原版(BCU毕业证书)伯明翰城市大学毕业证如何办理
 

Introduction into R for historians (part 1: introduction)

  • 1. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Introduction into R Richard L. Zijdeman 28 May 2015 Richard L. Zijdeman Introduction into R
  • 2. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio 1 Quantitave research methods 2 Statistical Software 3 Introducing R vocabulary 4 Getting help 5 Installing R and RStudio Richard L. Zijdeman Introduction into R
  • 3. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Quantitave research methods Richard L. Zijdeman Introduction into R
  • 4. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Why To answer descriptive and explanatory questions on populations Richard L. Zijdeman Introduction into R
  • 5. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Workflow: PTE problem (research question) theory (hypothesis) empirical test . . . with loops between T-E and P-T-E Richard L. Zijdeman Introduction into R
  • 6. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Research Questions descriptive (to what extent. . . ) comparative (comparing two entities) trend (comparison over time) explanatory (focus on mechanism at hand) Richard L. Zijdeman Introduction into R
  • 7. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Theory deductive reasoning explanans general mechanism condition explanandum (hypothesis) Richard L. Zijdeman Introduction into R
  • 8. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Empirical test sample vs. population random vs. stratified samples testing technique, e.g.: T-test, correlation, regression Software required for faster analysis Richard L. Zijdeman Introduction into R
  • 9. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Statistical Software Richard L. Zijdeman Introduction into R
  • 10. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio The dangers of analysing with spreadsheets (e.g. MS Excel) tempting to input and clean data in the same sheet difficult to track cleaning rules defaults mess up your data (e.g. 01200 -> 1200) Richard L. Zijdeman Introduction into R
  • 11. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Why use syntax (scripting) Efficiency (really) Quality (error checking) Replicatability Communication Richard L. Zijdeman Introduction into R
  • 12. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R R is open source, which is good and bad: anybody can contribute (check, improve, create code) free of charge but: R depends on collective action cannot ‘demand’ support sprawl of packages Richard L. Zijdeman Introduction into R
  • 13. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio RStudio browser for R provides easy access to: scripts data plots manual Richard L. Zijdeman Introduction into R
  • 14. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Introducing R vocabulary Richard L. Zijdeman Introduction into R
  • 15. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R script * series of commands to manipulate data * always save your script, NEVER change your data original data + script = reproducable research Richard L. Zijdeman Introduction into R
  • 16. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio R Session * contains scripts, data, functions * can be saved 'workspace image' * prefer not to: + sessions are usually cluttered + only useful if running script takes time Richard L. Zijdeman Introduction into R
  • 17. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Assignment * 'attach' values to an object (e.g. a variable) x <- 5 y <- 4 z <- x*y print(z) ## [1] 20 Richard L. Zijdeman Introduction into R
  • 18. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Assignment II Try and imagine the potential of assignment x <- c(4, 3, 2, 1, 0, 27, 34, 35) # 'c' for concatenate values y <- -1 z <- x*y print(z) ## [1] -4 -3 -2 -1 0 -27 -34 -35 Richard L. Zijdeman Introduction into R
  • 19. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Data.frame basically a table contains columns (variables) contains rows (cases) “flat table” in Kees’ terminology my.df <- data.frame(x,z) str(my.df) # show STRucture ## 'data.frame': 8 obs. of 2 variables: ## $ x: num 4 3 2 1 0 27 34 35 ## $ z: num -4 -3 -2 -1 0 -27 -34 -35 Richard L. Zijdeman Introduction into R
  • 20. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Packages and libraries base R (core product) additional packages CRAN repository spread through ‘mirrors’ choose a local, but active mirror Github packages not on CRAN development versions of CRAN libraries Richard L. Zijdeman Introduction into R
  • 21. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Getting help Richard L. Zijdeman Introduction into R
  • 22. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Build-in help: “?” ?[function] / ?[package] e.g. “?plot” or “?graphics” check the index for user guides and vignettes Richard L. Zijdeman Introduction into R
  • 23. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Cran website Manuals R FAQ R Journal Richard L. Zijdeman Introduction into R
  • 24. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Online communities Stackoverflow Instance of Stackexchange Reputation based Q&A Specific lists for packages, e.g.: ggplot2 R-sig-mixed-models Richard L. Zijdeman Introduction into R
  • 25. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Asking a question Getting an answer Search the web: others must have had this problem too If you raise a question: be polite be concise short background replicatable example debrief your efforts sofar Richard L. Zijdeman Introduction into R
  • 26. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Installing R and RStudio Richard L. Zijdeman Introduction into R
  • 27. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio Download R Instructions via http://www.r-project.org Choose a CRAN mirror http://cran.r-project.org/mirrors.html close, but active too! Romania hasn’t gone (yet!) Click on ‘Download R for Windows’ Follow usual installation procedure Double click on R You should now have a working session! Close the session, do not save workspace image Richard L. Zijdeman Introduction into R
  • 28. Quantitave research methods Statistical Software Introducing R vocabulary Getting help Installing R and RStudio RStudio RStudio is found on http://www.rstudio.com Download the version for your OS (e.g. windows) http://www.rstudio.com/products/rstudio/download/ Install by double clicking on the downloaded file Start RStudio by double clicking on the icon You do not need to start R, before starting RStudio Richard L. Zijdeman Introduction into R