Make rbindlist skip, ignore or change class attribute of the column
问题 I would like to merge a large set of dataframes (about 30), which each have about 200 variables. These datasets are very much alike but not identical. Please find two example dataframes below: library(data.table) library(haven) df1 <- fread( "A B C iso year 0 B 1 NLD 2009 1 A 2 NLD 2009 0 Y 3 AUS 2011 1 Q 4 AUS 2011 0 NA 7 NLD 2008 1 0 1 NLD 2008 0 1 3 AUS 2012", header = TRUE ) df2 <- fread( "A B D E iso year 0 1 1 NA ECU 2009 1 0 2 0 ECU 2009 0 0 3 0 BRA 2011 1 0 4 0 BRA 2011 0 1 7 NA ECU