rbind does not check for column names when binding together vectors:
l = list(row1 = c(10, 20), row2 = c(20, 10)) names(l$row1) = c(\"A\", \"B\") names(l$row
Why not just rbind(l$row1, l$row2[names(l$row1)]). Also works well for data frames. Note that this will discard columns from l$row2 that don't appear in l$row1.
rbind(l$row1, l$row2[names(l$row1)])
l$row2
l$row1