Author name: Erik Marsja

PhD in Psychology, Linköping University. Main interest is experimental and cognitive psychology. Enjoy programming in Python and R.

How to Convert Matrix to dataframe in R with base functions & tibble

In this short tutorial, you will learn how to convert a matrix to a dataframe in R. Specifically, you will learn how to use base R and the package tibble to change the matrix to a dataframe. You will learn this task using four examples (2 using each method).  Outline This post is structured as […]

How to Convert Matrix to dataframe in R with base functions & tibble Read More »

How to Make a Violin plot in Python using Matplotlib and Seaborn

In this Python data visualization tutorial, we will learn how to create a violin plot in Python with Matplotlib and Seaborn. We can carry out several techniques for visualizing data (see the post 9 Data Visualization Techniques You Should Learn in Python for some examples). Violin plots combine both the box plot and the histogram.

How to Make a Violin plot in Python using Matplotlib and Seaborn Read More »

Absolute value in R

How to Take Absolute Value in R – vector, matrix, & dataframe

Discover the power of calculating the absolute value in R through this data science tutorial. Learn to compute absolute values using the built-in function abs() effortlessly, e.g., abs(YourVector). Extend your proficiency by grasping the technique to compute absolute values for matrices and data frames. The following section will give you a detailed outline of what

How to Take Absolute Value in R – vector, matrix, & dataframe Read More »

how to select certain columns in R

Select Columns in R by Name, Index, Letters, & Certain Words with dplyr

In this post, you will learn how to select columns in R. Selecting specific columns is crucial when working with data in Psychology and data science. Whether you are analyzing survey data to examine relationships between variables or performing data-wrangling tasks, knowing how to extract relevant columns may be essential for your analysis. Imagine you

Select Columns in R by Name, Index, Letters, & Certain Words with dplyr Read More »

Scroll to Top