Joining dataframes from lists of unequal length
问题 I have two lists of dataframes that I want to combine, I have tried the following: A <- data.frame(ID = c(1,2,3), var1 = c(3,4,5), var2 = c(6,3,2)) B <- data.frame(ID = c(1,2,3), var1 = c(4,4,5), var2 = c(6,7,3)) C <- data.frame(ID = c(1,2,3), var1 = c(1,4,8), var2 = c(9,2,3)) list1 <- list(A = A, B = B, C = C) list2 <- list(A = A, B = B) combined <- map2(list1, list2, full_join, by = 'ID') This returns an error that the two lists are of different lengths. The only other way I have thought of