I have 3 different lists in R as follows:
dput(emp_id)
dput(employee)
dput(roles)
list("E1201", "E2231", "E3451")
list("John", "James", "Jonie")
c("district manager", "cashier", "food preparer", "cashier")
I am trying to make it into a dataframe as follows:
EMP id Employee Roles
E1201 John ["district manager"]
E2231 James ["cashier", "food manager"]
E3451 Jonie []
I tried
df = cbind(dd, de, di)
But it says that the arguments imply different rows. May i know whether there is any methods that can be used?