0
I have two coordinate matrices, matrix A with 83213 rows and two columns (longitude, latitude) and matrix B with 46886 rows and two columns (longitude, latitude). I would like to compare the coordinates of these two matrices 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 I can compare vectors of different sizes using the vector 1%in%vector 2 command, but how to compare matrices and the output being just a logical vector? It is possible?