I am new to R and I have a simple problem (by my opinion) but I haven't found a solution so far. I have a (long) set of 2D (x,y) coordinates - just points in 2D space, like this:
ID x y
1 1758.56 1179.26
2 775.67 1197.14
3 296.99 1211.13
4 774.72 1223.66
5 805.41 1235.51
6 440.67 1247.59
7 1302.02 1247.93
8 1450.4 1259.13
9 664.99 1265.9
10 2781.05 1291.12
etc.....
How do I filter points (rows in the table) that are in certain area (of any shape!)? How to filter dots that are within a subset of specified coordinates. How do I specify the wanted/unwanted area subsets? And how to put it in R? :) Thx a lot in advance!