I have two coordinate arrays, the A matrix with 83213 rows and two columns (longitude, latitude) and the B matrix with 46886 rows and two columns (longitude, latitude). I would like to compare the coordinates of these two arrays and return a logical vector of size 83213 of type c (FALSE, TRUE, TRUE, ...), being true if the coordinate of matrix A is contained in matrix B.
I know that I can compare vectors of different sizes using the command vector1% in% vector2, but how to compare arrays and the output is just a logical vector? It's possible?