Theoretical and Empirical Research Methodology · Implementation Lab 3
Europa-University Flensburg, Department of Pluralist Economics
2 October 2026
here packageCentral idea: all results are reproducible from the raw data — and the raw data must never be manipulated
Raw data must not be changed — but it is usually not in a state we can work with
Saving the scripts in steps 2 & 3 makes your work fully reproducible — they always tell you what you did to your raw data
Set up your project environment · done only once per project
Import data → transform raw data into tidy data → save data · may be done several times
Set up your project environment · done only once per project
Import data → transform raw data into tidy data → save data · may be done several times
See the tutorial and the video for the documentation of the concrete steps
The slides focus on selected background concepts only
here packageTwo ways to tell your computer where a file is located:
Assuming we are located in DataScienceExercises and want to point to nycflights21_small.rda:
setwd()DataScienceExercises?
setwd() the absolute path:
"data/nycflights21_small.rda"
setwd() at the top of their scripts
But you must never ever do this!
setwd() is evilsetwd() 🤯amazing_script.Rhereherehere::here()
here::i_am() into the first line of your scripts:here packagehere::here() returns and experiment with ithere package makes code transferable across machines — The better alternative to setwd()Project management is essential, and chronically under-appreciated
Further topics: version control (Git) · virtual environments (renv)
Implementation Lab 3 · Setting up R projects · Claudius Gräbner-Radkowitsch