I have two data frames: codes and supply. Codes (shown below) is comprised of four fields: state,codetype,code,codetitle supply has 12 columns but three of them are state,codetype, and code
An example of this is below
state codetype code codetitle
32 15 123456 Something
32 15 123455 Something Else
32 10 123455 Something Else
From there, I use the following code to concatenate the item
supply1<- supply%>%mutate(supply1= paste0(state,codetype,code))
codes1<- codes%>%mutate(codes1= paste0(state,codetype,code))
My question is how do I find out what combinations of state,codetype,code are in supply1 but not codes1. I would use excel and the match function to do this but there are 1.9 million rows and that exceeds the capacity of Excel.
Have looked at documentation about antijoin. However, being that there is no common field such as ID, getting a bit confused.
tidyverse
base R
(and some column clean-up)
alternative base R
This is effectively what you were starting with:
data