Lets say I have a data frame with IDs and other columns and I want to add a column showing whether or not an ID also exists in another data frame. If it does, the column should be a 1. If it doesn't, it should be a 0.
How can I do this using dplyr? I've played around using left_joins as well as mutate and ifelse but can't seem to find a quick solution.