The "over" function in the sp package should be able to do this for you.
One of the examples found in ?over says:
# return the number of points in each polygon:
sapply(over(sr, geometry(meuse), returnList = TRUE), length)
In that example, meuse contains the points and sr contains polygons,
Depending how your data are stored, this could be solved with a very basic use
of R, such as the ifelse and aggregate functions. Try reading [1] for
suggestions on clarifying your problem statement and follow up.
[1]
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible
Hi
I write my masterthesis and don't know how I can count points in a spatial net.
In practical I have a data set for carsharing usage in Berlin. It includes the
Idletime of the cars with Long/lat coordinates for the certain places. So if I
plot those points I have something like a cloud of poi
3 matches
Mail list logo