Day 1 - Introduction to Data Analysis with R
Freie Universität Berlin - Theoretical Ecology
March 6, 2026
R is the programming language and the program that does the actual work
RStudio is the integrated development environment (IDE).
Interface to R, syntax highlighting, file management, …
Execute R code
Output from R code in scripts is printed there
Type a command into the console and execute with Enter/Return
Tip
Use arrow keys to bring back last commands
Write scripts with R code
Scripts are text files with R commands (file ending .R)
Use scripts to save commands for reuse
Script vs Console
Use scripts for all your analysis and for commands that you want to save.
Use console for temporary commands, e.g. to test something.
Shows objects currently present in the R session
Is empty if you start R
Similar to Explorer/Finder
Browse project structure and files
Learn the most important keyboard shortcuts of RStudio.
Find all shortcuts under Tools -> Keyboard Shortcuts Help
Idea: One directory (folder) with all files relevant for project (data, R scripts, figures, …)
Create a project from scratch:
RStudio will now create and open the project for you.
From file explorer/finder:
Double click on the .Rproj file
From inside RStudio:
Click the project symbol on the top right
Task 1 (15 min)
Set up your own RStudio project for this workshop
Find the task description here
Selina Baldauf // Introduction RStudio