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!

marked as duplicate by whuber Mar 2 '13 at 21:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.