I have multiple variables with many data.frame attributes that look like this:
> df1
$ML1
Q2 Q3
1 1 1
2 0 0
3 0 1
4 1 1
5 0 0
$ML2
Q4 Q5
1 0 1
2 1 1
3 1 0
4 1 0
5 0 0
> df2
$ML2
Q4 Q5
1 1 1
2 1 0
3 1 0
4 0 0
5 0 0
6 1 0
7 1 1
8 0 1
9 1 1
10 0 1
$ML1
Q2 Q3
1 0 0
2 1 1
3 0 1
4 1 0
5 0 1
6 1 0
7 0 1
8 1 0
9 1 1
10 0 0
And I would like to combine them into a variable with data.frames like this:
> dfAll
$ML1
Q2 Q3
1 1 1
2 0 0
3 0 1
4 1 1
5 0 0
6 0 0
7 1 1
8 0 1
9 1 0
10 0 1
11 1 0
12 0 1
13 1 0
14 1 1
15 0 0
$ML2
Q4 Q5
1 0 1
2 1 1
3 1 0
4 1 0
5 0 0
6 1 1
7 1 0
8 1 0
9 0 0
10 0 0
11 1 0
12 1 1
13 0 1
14 1 1
15 0 1
I have tried rbind(df1, df2)
but that creates a variable that looks like:
> rbind(df1, df2)[,"ML1"]
$df1
Q2 Q3
1 1 1
2 0 0
3 0 1
4 1 1
5 0 0
$df2
Q4 Q5
1 1 1
2 1 0
3 1 0
4 0 0
5 0 0
6 1 0
7 1 1
8 0 1
9 1 1
10 0 1
So the rows are not appended to each other in the same data.frame
What else do I need to do?