tidyverse

wide format to long format in r

Wide to Long in R using the pivot_longer & melt functions

In this post, we will learn how to transform data from wide to long in R. Wide-to-long format conversion is often an important data manipulation technique in data analysis. In R, we can use many packages and their functions to transform data from a wide to long format. These functions include the tidyr package’s pivot_longer() […]

Wide to Long in R using the pivot_longer & melt functions Read More »

R violin plot

How to Create a Violin plot in R with ggplot2 and Customize it

This data visualization tutorial will teach us how to make a violin plot in R using ggplot2. We can use several techniques to visualize data (see, for example, the Python-related post “9 Data Visualization Techniques You Should Learn in Python“) to visualize our data in r. Briefly described, violin plots combine a box plot and

How to Create a Violin plot in R with ggplot2 and Customize it 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