Archive

Latest

Everything You Need to Know to Use Git for Version Control

So many people have recommended Git as a version control system to me. I had a look at it, but I was pretty overwhelmed. Since I did not have a technical background, everything seemed so complex! Many tutorials let me copy paste code without giving you a deeper understanding of what and why I am actually doing this. This copy pasting feels like success at first, but when I tried working with it, I could not.

Automatically changing the R working directory on Mac OS to source file location

This post is about how to change your R working directory. You might be wondering: Why would I want to do that? You need this as soon as your script interacts with folders on your computer. For example for imports or exports of data or figures. So probably almost always. Let’s say you have a script that creates plots and saves them in the folder “Plots”, which is located in your source file directory.

Formatting tables in R Markdown with kableExtra

In this post, I will show you some of my best practises for formatting tables in R Markdown. We will cover How to generally format tables (font, size, color… ) How to create tables with conditional formatting (e.g. coloring values < 0 red) The basics: the R package kableExtra kableExtra is an awesome package that allows you to format and style your tables. It works similar to ggplot2: You create a base table and then add formatting layers with the pipe operator %>%.

R Markdown for Novices: All you need to know to get started

I write this blogpost for someone, who has never worked with R Markdown. After you read this post, you will understand why R Markdown may be useful for your daily work as a student, researcher, analyst or data scientist. understand the basic structure of an R Markdown document and how you can get started. I strongly encourage everybody working with R to use R Markdown. I promise, it will make your life so much easier.