Introduction to R: Part II
Something nice here
Click here to see the materials in full screen
About these materials
Please cite these materials as: Rieger, D., Waterfield, E., Sanchez-Steinhagen, C. L., Middleton, S., & Von Grebmer Zu Wolfsthurn, S. (2026). Introduction to R: Part II [Quarto slides]. LMU Open Science Center. https://lmu-osc.github.io/teaching-material-for-novices/open-research-tools/r-part-II
Welcome! This workshop is intended to provide learners with a practical introduction to working with R and RStudio for basic data handling and data visualization. Learners practice how to set a working directory, install and load packages, import and inspect data, subsetting data, deriving summary statistics, and creating histograms. Through reflection, discussion, and a hands-on assignment using an R dataset, learners develop confidence in applying these more advanced programming skills to future data analysis tasks and their own research work.
Who are these materials for?
- Educators in higher education with or without familiarity with open research planning to teach open research to novices
- Self-learners with no or limited familiarity with open research planning to develop and build up on their open research skills
Prerequisites
| Prerequisite | Description | Where to find it |
|---|---|---|
| R and RStudio installed | Latest versions of both R and RStudio | Download RStudio |
| Accessibility sheet for computers | Fundamentals of computer literacy | Download |
| Basic R skills | Introduction to R - Part I | Access here |
Learning objectives
At the end of this session, you or your learners will be able to …
- Identify and set the correct working directory on your computer
- Install and load R packages to extend R’s functionality
- Import external data into the R environment
- Inspect data structures and extract specific columns
- Compute basic statistical summaries on a dataset
- Visualize data distributions using simple histograms
Download materials
Export slides
You can export these slides as MS PowerPoint (.pptx - in progress) or pdf by clicking below. Note that basic formatting will be applied to the PowerPoint file.
R dataset
Download the charactersdataset: Download dataset
Contributors and licence details
Creator: Rieger, David (
0009-0004-3701-3101)
Creator: Waterfield, Elizabeth (
0009-0006-3725-6730)
Consultant: Sanchez Steinhagen, Caterina Luz (
0009-0006-4783-1110)
Reviewer: Middleton, Sara (
0000-0001-5307-8029)
Reviewer: von Grebmer zu Wolfsthurn, Sarah (
0000-0002-6413-3895)
This work was originally created by Nicklas Hafiz. His work was subsequently adapted by David Rieger, Elizabeth Waterfield, Caterina Luz Sanchez Steinhagen, Sara Lil Middleton and Sarah von Grebmer zu Wolfsthurn. The current work is licensed under a Creative Commons Attribution 4.0 SA International License (CC-BY-SA 4.0). Code snippets are dedicated to the public domain and are licensed under a Creative Commons Universal Licence (CC0 1.0).