R

R statistical programming related stuff

How to Read and Write Stata (.dta) Files in R with Haven

Here you will learn how to load .dta files in R. That is, you will learn how to read Stata files in R. After this, you will learn how to save dataframes (and .csv and xlsx files) as .dta files.,

How to Remove a Column in R using dplyr (by name and index)

Here you will learn how to remove a column in R. More specifically, we will learn how to remove many columns, also (as well as one column). First, we learn how to remove columns by names and indexes. Then we learn how to remove columns that contains certain letters (either start with, end with, or just contain them).

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 Read & Write SPSS Files (.sav) in R Statistical Environment

In this post, you will learn how to read and write SPSS files. More specifically, you will learn how to use Haven and Foreign to read SPSS files. Finally, you will also learn how to load CSV & Excel files and save them as SPSS files.

How to Import Data: Reading SAS Files in R with Haven & sas7dbat

In this post we are going to learn two very easy ways to load SASdata files (.sav7bdat) in R.

How to Make a Scatter Plot in R with Ggplot2

Here you will learn how to create scatter plots in R. In this post we will, focus on ggplot2, from the tidyverse, among other packages to learn how to create the plots, add text, change color, group, and a regression line.

R Excel Tutorial: How to Read and Write xlsx files in R

In this tutorial, we will learn how to work with Excel files in R statistical programming environment. It will provide an overview of how to use R to load xlsx files and write spreadsheets to Excel.

How to Use Binder and R for Reproducible Research

Learn how to use Binder, mybinder, git, and GitHub to make your R statistical analysis and visualization reproducible for other researchers.

Repeated Measures ANOVA in R and Python using afex & pingouin

Here you will learn how to conduct repeated measures Analysis of Variance (ANOVA) in R and Python. More specifically, you will learn how to use the r-package afex and the Python package pingouin to carry out ANOVA.

R Resources for Psychologists

Good resources for learning R as a Psychologist are hard to find. By that, I mean that there are so many great sites and blogs to learn R. Thus, it may be hard to find learning resources that target Psychology researchers. Outline The structure of this post is as follows. First, we start by getting

Scroll to Top