students <- data.frame(
Name = c("Alice","Bob","Lukman","Aishah","Kamal"),
Age = c(10,20,19,28,21),
Grade = as.factor(c("A","A","B","A","C")),
Subject = as.factor(c("Math","History","Math","English","History"))
)
students Name Age Grade Subject
1 Alice 10 A Math
2 Bob 20 A History
3 Lukman 19 B Math
4 Aishah 28 A English
5 Kamal 21 C History