Write a R program for different types of data structures in R.

Program to create menu and pull-down menusprint("Vectors")
X = c(1, 3, 5, 7, 8)
print(X)
print("List")
empId = c(1, 2, 3, 4)
empName = c("Debi", "Sandeep", "Subham", "Shiba")
numberOfEmp = 4
empList = list(empld, empName, numberOfEmp)
print(empList)
print("DataFrames")
Name = c("Amiya", "Raj", "Asish")
Language = c("R", "Python", "Java")
Age = c(22, 25, 45)
df = data.frame(Name, Language, Age)
print(df)
print("Matrix")
A = matrix( c(1, 2, 3, 4, 5, 6, 7, 8, 9), nrow 3, ncol = 3,
byrow = TRUE)
print(A)
print("Array")
A = array(c(1, 2, 3, 4, 5, 6, 7, 8),
dim = c(2, 2, 2))
print(A) print("factors")
fac = factor(c("Male", "Female", "Male", "Male", "Female", "Male", "Female"))
print(fac)