Using R, I would like to count the number of points within a polygon according to a specific criterion (a temporal window).
I have the following dat