Re: [R] Problems with spatial data for Masterthesis

2014-12-19 Thread MacQueen, Don
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,

Re: [R] Problems with spatial data for Masterthesis

2014-12-18 Thread Jeff Newmiller
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

[R] Problems with spatial data for Masterthesis

2014-12-18 Thread Christian Brodbeck
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