General information on the course

This online tutorial will accompany the seminar “Theories, models, methods and objects of controlling”, an M.A. Seminar at the IfKW (Ludwig-Maximilians-Universität München, SS2022).

The course takes place in Oettingenstraße 67, Room 067 (Wednesday 12:15-13.45 am). You can access all necessary information on the seminar’s syllabus, important dates and assignments via Moodle, “SoSe 22 Theorien, Modelle, Methoden und Gegenstände der PR-Wirkungs- und Erfolgskontrolle”. There, additional resources (e.g. Powerpoint slides, book resources, etc.) are uploaded to the material folders of the respective week.

What can I learn from this tutorial?

After completing the entire tutorial, you will have acquired two important skills:

  1. Know how to use R and R studio to complete your data management.
  2. Know how to use R and R studio to do digital media analysis.

In the seminar, our sessions will consist of two parts. In the first part, we will learn about evaluation techniques and discuss your own experiences. In the second part, you will work through this tutorial and solve exercises together with fellow students. The tutorial is designed to provide the R skills that you need to put media resonance analysis and automated clipping into real-world practice. The goal is to make the individual seminar sessions diverse and to advance your programming skills with as much ease and fun as possible.

Each tutorial consists of:

  • an introduction to new functions/analysis methods in R, including corresponding R code
  • main take-aways that you should remember
  • information on additional tutorials / sources
  • exercises to practice your new skills (you’ll often work through these with your peers)

What can I do if I have a question?

Questions are welcome!

It’s natural to have a lot of questions because you’ll be learning a lot of new stuff. Please do ask if you don’t understand something in this tutorial, have questions concerning exercises, or simply need to talk through some of the new stuff. It’s quite natural to get lost at times when learning a new programming language. Don’t worry; it’s extremely probable that everyone else is experiencing the same thing.

Therefore, it’s key that you ask questions:

  1. In our live sessions: Wednesday, 12:15-13:45.
  2. In the Moodle forum: Please, post all your questions to the Moodle forum. Every participant will be able to see your questions, submit replies, and view my responses in this manner. As a result, everyone will have access to the same information. To stay updated about current debates, I propose that you turn on alerts about new entries in the forum.
  3. Email: Send me an email at if you have any private questions that you don’t want to address in front of the rest of the class.

What can I do if I have problems with my R code?

Besides asking a question during the seminar (see What can I do if I have a question?), there are some great places to have a look at when you encounter problems. To give you a head start, here’s a quick rundown of the three best places to look if you have a problem with your code:

  1. R’s integrated help function: Use the ?-function whenever possible. Let’s assume you struggle with creating a histogram for your data (hist function in R). You can open the R documentation of the hist function in R by writing:
?hist
Preview of ?hist in R:
  1. Search engines: Like Bing or Google. Yup, programmers and data scientists google all the time! Nobody knows all the code and errors by heart. Often you can find perfect answers to your questions on Stackoverflow, StatsExchange, or Rseek because other people had exactly the same problems. And more importantly, the communities on these websites are very friendly and helpful.

  2. Packages’ reference manuals: Finally, problems with R packages (we’ll get to packages later, see: Packages) can often be solved by looking at their reference manuals (an overview document containing all of a package’s functions). For example, you can learn more about dplyr (a data management package that we are going to use later in this tutorial) by visiting its reference manual on a website called “CRAN”: https://cran.r-project.org/web/packages/dplyr/dplyr.pdf.

That is all there is to it. Let’s begin with our first tutorial: Tutorial: Installing & Understanding R/R Studio