File size: 282 Bytes
7718235
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
my.bind.rows <- function (df1, df2) {
  for (c in colnames(df1)[colnames(df1) %in% colnames(df2)]) {
    if(typeof(df1[,c])!=typeof(df2[,c])) {
      df1[,c] <- as.character(df1[,c])
      df2[,c] <- as.character(df2[,c])
    }
  }
  result <- dplyr::bind_rows(df1, df2)
  result
}