I have following three variables
id = c(1,2)
year = c(90,91)
group = c('a','b')
What is the most efficient way to create the following dataframe structure ?
id year group
1 90 a
1 91 a
1 90 b
1 91 b
2 90 a
2 91 a
...