Tibble A
contains keys/patterns that may be found in tibble B
. My goal is to identify keys/patterns that were not found in tibble B
.
I want to anti-join two tables by a matching pattern:
A <- tibble( colA = c("B12", "B19", "B202", "B87", "B61", "B55") )
B <- tibble( colB = c("aaB87aa", "bbbbB55", "B202cccc") )
I found that function from fuzzyjoin
should work but I can't use it properly:
test <- regex_anti_join(A, B, by = c(colB = "colA"))
EDIT
At the end I would like to have something like this:
test
1 B12
2 B19
3 B61