library(tidyverse) #dplyr is a part of the Tidyverse collection of packages. We can use dplyr by loading this package as well.
── Attaching core tidyverse packages…
library(dplyr) #Importing the required library
Attaching package: 'dplyr' The following objects are masked from 'package:stats': filter, lag The following…