employees <- data.frame(
name = c("Alice", "Bob", "Cathy", "David", "Eva",
"Frank", "Grace", "Hank", "Ivy", "Jack"),
age = c(25, 31, 28, 40, 35, 23, 30, 45, 33, 29),
department = c("HR", "IT", "Finance", "IT", "HR",
"Finance", "IT", "HR", "Finance", "IT"),
salary = c(50000, 60000, 55000, 70000, 53000,
51000, 62000, 71000, 57000, 59000)
)
employees
name age department salary
1 Alice 25 HR 50000
2 Bob 31 IT 60000
3 Cathy 28 Finance 55000
4 David 40 IT 70000
5 Eva 35 HR 53000
6 Frank 23 Finance 51000
7 Grace 30 IT 62000
8 Hank 45 HR 71000
9 Ivy 33 Finance 57000
10 Jack 29 IT 59000