Skip to contents

rbind two data frames even if column names differ

Usage

safeRowBind(dataFrame1, dataFrame2)

Arguments

dataFrame1

first data frame

dataFrame2

second data frame

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