R

R statistical programming related stuff

How to Create Dummy Variables in R (with Examples)

In this tutorial, we will learn how to create dummy variables in R. Now, creating dummy/indicator variables can be carried out in many ways. For example, we can write code using the ifelse() function, we can install the R-package fastDummies, and we can work with other packages and functions (e.g. model.matrix). In this post, however, […]

How to Create Dummy Variables in R (with Examples) Read More »

descriptive statistics in R

How to Calculate Descriptive Statistics in R the Easy Way with dplyr

In this post, we will learn how to calculate summary statistics in R. Specifically, we will learn how to calculate the standard deviation, mean (trimmed, harmonic, geometric), variance, IQR, quantiles. etc. We will learn how to save the summary statistics as latex (so we can output it to a nice table in a PDF, for instance), and how to save it as a csv file.

How to Calculate Descriptive Statistics in R the Easy Way with dplyr Read More »

Scroll to Top