dplyr rename(): How to rename column in r with dplyr

How to rename a column with dplyr's rename()

In this tutorial, we will learn how to rename column name of a dataframe in R using dplyr’s rename() function. We will first see the basic syntax to use to change the name of a column with dplyr’s rename(). Then we will see an example of of changing one column name and next wee will… Continue reading dplyr rename(): How to rename column in r with dplyr

How to convert a matrix to a tidy table

In this tutorial, we will learn how to convert a data matrix to tidy long table. We will use tidyr’s pivot_longer() function to reshape the matrix into a tidy table. First, let us start with loading the tidyverse suit of packages. Create a simulated data matrix Let us create a data matrix using rnorm() function… Continue reading How to convert a matrix to a tidy table

Exit mobile version