Concatenate (rbind) two data frames and expand the result to include all columns from both tables.
Examples
merge_two_dea_dfs(
data.frame(a=1:3,b=5:7),
data.frame(a=1:3,b=5:7)
)
#> a b
#> 1 1 5
#> 2 2 6
#> 3 3 7
#> 4 1 5
#> 5 2 6
#> 6 3 7
merge_two_dea_dfs(
data.frame(a=1:3,b=5:7),
data.frame(a=1:3,b=5:7,c=10:12)
)
#> a b c
#> 1 1 5 NA
#> 2 2 6 NA
#> 3 3 7 NA
#> 4 1 5 10
#> 5 2 6 11
#> 6 3 7 12
merge_two_dea_dfs(
data.frame(a=1:3,b=5:7,d=10:12),
data.frame(a=1:3,b=5:7,c=10:12)
)
#> a b d c
#> 1 1 5 10 NA
#> 2 2 6 11 NA
#> 3 3 7 12 NA
#> 4 1 5 NA 10
#> 5 2 6 NA 11
#> 6 3 7 NA 12