Quantcast
Channel: Active questions tagged set-difference - Stack Overflow
Viewing all articles
Browse latest Browse all 36

How to find nonmatching colnames in 2 dataframes?

$
0
0

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?


Viewing all articles
Browse latest Browse all 36


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>