dplyr’s mutate(): How to create new columns

In this tutorial, we will learn how to create/add one or more columns to a dataframe using dplyr’s mutate() function. We will first see an example of creating a single new column in a dataframe and then see an example of adding multiple columns using mutate() function. First we load tidyverse the suit of R… Continue reading dplyr’s mutate(): How to create new columns

Exit mobile version