rbind two data frames even if column names differ
Examples
kwb.utils::safeRowBind(
data.frame(A = 1:2, B = 2:3),
data.frame(B = 3:4, C = 4:5)
)
#> A B C
#> 1 1 2 NA
#> 2 2 3 NA
#> 3 NA 3 4
#> 4 NA 4 5
rbind two data frames even if column names differ
kwb.utils::safeRowBind(
data.frame(A = 1:2, B = 2:3),
data.frame(B = 3:4, C = 4:5)
)
#> A B C
#> 1 1 2 NA
#> 2 2 3 NA
#> 3 NA 3 4
#> 4 NA 4 5