I have two lists
first = list(a = 1, b = 2, c = 3) second = list(a = 2, b = 3, c = 4)
I want to merge these two lists so the final product
merged = map(names(first), ~c(first[[.x]], second[[.x]]) merged = set_names(merged, names(first))
Using purrr. Also solves the problem of your lists not being in order.