Re: [R] R code for selecting places spatially and by time

2008-03-07 Thread Ben Bolker
Andrew McFadden maf.govt.nz> writes: > > > Hi all > > The code of trying to write relates to selecting properties (given by x > and y co-ordinates) spatially (distance "X" from "infected" properties > identified by date) over a certain time period. > > i.e. what properties are within 3 km fro

Re: [R] R code for selecting places spatially and by time

2008-03-07 Thread Felix Andrews
Andrew, You haven't defined the problem clearly, but I will try to guess what you mean... > i.e. what properties are within 3 km from properties infected on > "2008-01-01" over the last 14 days. I'm guessing that each row of your sample data represents one infection event, and you want to find

[R] R code for selecting places spatially and by time

2008-03-06 Thread Andrew McFadden
Hi all The code of trying to write relates to selecting properties (given by x and y co-ordinates) spatially (distance "X" from "infected" properties identified by date) over a certain time period. i.e. what properties are within 3 km from properties infected on "2008-01-01" over the last 14 day