This question already has an answer here:
I have a point pattern and a tessellation (grid) in R. Is there a way to spatially index each of my points? In other words, my tessellation grid has n quadrats, I would like to know for each of my points which of these (1:n) quadrats they are associated with. If not, is there another way to do so in R? Many thanks for your suggestions!