Things I forget: Reduce merge

2018/06/01

I always forget how to run a reduce merge.

Reduce(function(x, y) merge(x, y, all=TRUE), list(df1, df2, df3))
# OR #
Reduce(function(...) merge(..., all=TRUE), list(df1, df2, df3))

Sources: SO 1, SO 2, Performance of merge