R Examples Repository
R code examples for a number of common data analysis tasks
The examples on this site aim to show how a number of common data analysis tasks can be performed using the R environment for statistical computing. The focus is on basic statistical methods for the social and life sciences. The examples assume a reader who is already familiar with the statistical underpinnings, and who knows when a particular analysis should be carried out.
The posts on this site were created automatically from within R, using a workflow that makes use of knitr, the static site generator nanoc, and the Bootstrap framework. For details, see this page explaining the workflow. This website, including all examples (R markdown, markdown, and plain R code files), is available on GitHub. The repository also contains the Makefiles and an R-script necessary for automatically building the website.
All content on this site is licensed under the Creative Commons BY-SA license.
- [R Basics](<%= @config[:rer][:baseurl] %>/rerR_Basics.html)
- [Descriptive statistics](<%= @config[:rer][:baseurl] %>/rerDescriptive.html)
- [Work with data frames](<%= @config[:rer][:baseurl] %>/rerData_Frames.html)
- [Univariate methods](<%= @config[:rer][:baseurl] %>/rerUnivariate.html)
- [Nonparametric and resampling methods](<%= @config[:rer][:baseurl] %>/rerNonparametric.html)
- [Multivariate methods](<%= @config[:rer][:baseurl] %>/rerMultivariate.html)
- [Diagrams](<%= @config[:rer][:baseurl] %>/rerDiagrams.html)
The examples mostly come from my book, and are currently bare-bones R code. They will be complemented with comments and short explanations over time.
Some methods within the intended scope of this repository are currently missing:
- Psychometrics (classical test theory and item response theory)
- Cluster analysis and other classification techniques
- Time series
Contributed examples are very welcome, please contact me if you would like to add your code to this repository.