I want to merge two datasets based on three variables, id, begin date, end date. I want to merge together observations that have the same id, and either the same begin date or same end date. Can this be implemented?