マトリックスに格納された座標で SpatialPointsDataframe をサブセット化したいと考えています。私がこれまでに試したことは次のとおりです。
pts_subset <- pts[pts@coords == mtx, ]
# variable <mtx> holds the coordinates in two columns, <x> and <y>, just like in the SpatialPointsDataframe
# variable <pts> represents my SpatialPointsDataframe I want to subset with the given coordinates
ただし、これは機能しません。助言がありますか?