youtube video link with explanations for these examples https://youtu.be/61nv6YafILI

Save time and effort. Efficient and easiest way to manage all your r packages in a script.

Note that you would first need to install the pacman package. You can use this code for installing the package. install.packages(“pacman”)

# Usual way of installing and using the packages

# Install the packages first (if not already installed)
#install.packages("ggplot2")
#install.packages("dplyr")
#install.packages("lubridate")
#install.packages("corrplot")



# Call the packages 
library(dplyr)
library(ggplot2)
library(lubridate)
library(corrplot)





ggplot(data = cars, aes(x = speed, y = dist )) + geom_point()

#install.packages("pacman")

pacman::p_load(ggplot2, dplyr, lubridate, corrplot)