
Franziska Faupel
MOSAIC Summer School 2016
Data analysis is an essential tool of empirical research
"learning programming is learning to think"
forcing the problem in a logical and sequential structure
1976: S language by John Chambers at Bell Laboratories (AT&T)
1993: Free implementation of R under the name R by Ross Ihaka and Robert Gentleman
Most statistical software provides convenient standartised test, as \(chi^2\) test etc. R has some very convienient advantages:
Advantages | Disadvantages |
---|---|
reproducibility and verifiablilty | high barriers to learn |
flexible and extensible | 'raw' syntax |
many different packages | |
customisable | |
independent platform with a great support |
knitr
or sweave
. ##################################################################
## Didactic R-Script for Modelling Summer School
## ===============================================================
## Project: Modelling Summer School
## Author: O. Nakoinz, D. Knitter & F. Faupel
## Version: 01
## Date of last changes: 03.08.2016
## Data: some.data
## Author of data: author.data
## Purpose: didactic
## Content: 1. preparation, 2. data import, ...
## Description: The script include ...
## Licence data: -
## Licence Script: GPL (http://www.gnu.org/licenses/gpl-3.0.html)
##################################################################
# This is a comment
a <- c(3,6,7,4,9,7,3,3,3) # This is a vector
median(a) # This is the "median" function
## [1] 4
Use a convenient yet standardised folder structure for scripts, data, results and reports. During the Mosaic Summer School, we will work with the follwoing structure.
Source | Link |
---|---|
R Foundation Homepage | https://www.r-project.org/ |
Homepage of RStudio | https://www.rstudio.com/ |
Homepage of R Consortium | https://www.r-consortium.org/ |
R language | https://de.wikipedia.org/wiki/R_(Programmiersprache) |
R language (german) | https://en.wikipedia.org/wiki/R_(programming_language) |
Wikibook | https://de.wikibooks.org/wiki/GNU_R |
Support | http://www.r-bloggers.com |
Support | http://stackoverflow.com/ |
ISAAKiel | https://isaakiel.github.io/ |
# This is R Code
5+3
5-3
5*3
5/3
sqrt(25)
sin(3.14)
3.14 * (180 / pi)
# This is R Code
5+3
5-3
5*3
5/3
sqrt(25)
sin(3.14)
3.14 * (180 / pi)
# This is R Code
5+3
## [1] 8
5-3
## [1] 2
5*3
## [1] 15
5/3
## [1] 1.666667
sqrt(25)
## [1] 5
sin(3.14)
## [1] 0.001592653
3.14 * (180 / pi)
## [1] 179.9087
Monday, 5th of September
Tuesday, 6th of September
Wednesday, 7th of September
Thursday, 8th of September