Skip to content

R and RStudio

“The best thing about R is that it was developed by statisticians. The worst thing about R is that…” — Bo Cowgill, Google

Why learn R?

There are numerous reasons why R is a powerful statistical package worth learning.[1]R is open-source and runs on any operating system, it has a huge supporting community (youtube tutorials, discussions boards, free ebooks), it's compatible with other programming languages, you can … Continue reading In our seminar, we learn a statistical programming language in order to answer simple but intriguing questions. The software is supposed to be a useful tool to conduct our analysis and convey our results to fellow students, other researchers and the general public.

Download R and RStudio

Introduction

Here I give you an introduction to R and RStudio. I do not explain how to download and install the software. If you have never or rarely used R or any other statistical package, this intro should help you to get a quick start. The video covers:

  • How RStudio panels looks like.
  • Basic components of the R script.
  • The command line.
  • Install and load additional packages.
  • How to load data (e.g. the SOEP practice data).
  • Explore tabular/panel/missing data.
  • Base R operations (select, inspect, summarize, manipulate and plot data).
Introduction to R and RStudio, Explaining the First Panel Data Exercise with SOEP Practice Data (42 Minutes)

If you have R experience, just skim the R script.

You can open the SOEP_Practice_1.txt and probably view it in your browser without any additional text editor. You may download and save it as SOEP_Practice_1.R such that it is recognized by RStudio.

References

References
1 R is open-source and runs on any operating system, it has a huge supporting community (youtube tutorials, discussions boards, free ebooks), it's compatible with other programming languages, you can create markdown reports as well as Shiny apps and dashboards, it's widely used in academia and buisness/consulting.