# Installing the loading the package
install.packages("dplyr")
library(dplyr)
# Creating dataframe
gfg = data.frame(Customers = c("Roohi", "James", "Satish", "Heera",
"Sehnaaz", "Joe","Raj", "Simran",
"Priya","Tejaswi"),
Product = c("Product A", "Product B", "Product C",
"Product A", "Product D", "Product B",
"Product D", "Product C", "Product D",
"Product A"),
Salary = c(514.65, 354.99, 345.44, 989.56, 767.50,
576.90, 878.67, 904.56,123.45, 765.78)
)
gfg
# Sorting the dataframe in ascending order
arrange(gfg, Salary)