How to find nonmatching colnames in 2 dataframes?

30 Views Asked by At

I have 2 data frames with colnames as dates.eg:2020-01-01, 2020-01-02 and so on.

Some dates are missing from the second dataframe, hence different column length. I want to find out which dates are missing in the second so I can remove them from the first. I used dplyr setdiff but it throws error: x and y are not compatible. How do i resolve this?

0

There are 0 best solutions below