Solution:
Employees = data.frame(Name=c("Sagar","Dinesh","Komal", "Jasmine","Lalit"),
Gender=c("M","M","F","F","M"),
Age=c(23,22,25,26,32),
Designation=c("Clerk","Manager","Exective","CEO","ASSISTANT")
)
print("Details of the employees:")
print(Employees)
Employees[order(Employees$Name,decreasing=FALSE),]
0 Comments