I have 2 dataframes: `wd_patients` and `wd_appointments`.

How do I check if all patients in wd\_patients are also listed in wd\_appointments and vice versa.
And then how can I update these two files such that every patient in one dataset also exists in the other one as well?

Please see the structures of my dataframes below:

```
 str(wd_patients)
Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   990 obs. of  5 variables:
 $ ID                : chr  "QJSkgvEFvP" "UwSKF6tmaG" "TgO3Lo9cR6" "DFDaFnBxU9" ...
 $ Age               : num  63 64 60 76 66 68 69 87 74 85 ...
 $ Gender            : chr  "Male" "Female" "Female" "Female" ...
 $ AppointmentCount  : num  3 3 3 3 5 2 2 2 5 2 ...
 $ TreatmentCompleted: chr  "Yes" "No" "No" "Yes" ...

 str(wd_appointments)
Classes ‘tbl_df’, ‘tbl’ and 'data.frame':   3473 obs. of  3 variables:
 $ patientID : chr  "IEBQggWteS" "nCOytLO2tK" "Kc7D1GZhqr" "GTyawkFnQn" ...
 $ apptDate  : POSIXct, format: "2022-06-01" "2022-06-01" "2022-06-01" "2022-06-01" ...
 $ apptStatus: chr  "No Show" "No Show" "Cancelled" "Cancelled" ...

```