### data frame 1
df1 <- data.frame ( a = 1:3, b = TRUE)
### data frame 2
df2 <- data.frame ( d = 100, a = 11:13)
### data frame 3
df3 <- data.frame ( d = 1000, x = 101:103)
### one common col
rbind_common(df1, df2)
### no common cols
rbind_common(df1, df2, df3)
Run the code above in your browser using DataLab