Re: [R-sig-Geo] sum number of events by covariate using applynbd

2012-05-14 Thread Wall, Wade A ERDC-RDE-CERL-IL
] sum number of events by covariate using applynbd PLEASE!!! Do NOT confuse "covariate" with "mark". They are very different concepts. You want to "segregate by ***mark***" (etc.) NOT by covariate. The latter makes no sense at all. As to how to accomplish th

Re: [R-sig-Geo] sum number of events by covariate using applynbd

2012-05-11 Thread Rolf Turner
PLEASE!!! Do NOT confuse "covariate" with "mark". They are very different concepts. You want to "segregate by ***mark***" (etc.) NOT by covariate. The latter makes no sense at all. As to how to accomplish the desired task, see below. On 12/05/12 09:23, Wall, Wade A ERDC-RDE-CERL-IL wrote:

[R-sig-Geo] sum number of events by covariate using applynbd

2012-05-11 Thread Wall, Wade A ERDC-RDE-CERL-IL
Hi all, I am wanting to sum the number of events within r=5 distance of a set of points and segregate by a covariate. I want to use the function applynbd, but not sure how to write a custom function to do this. For example, I have a ppp object, LS.ppp. LS.ppp$marks has two levels, M and F. Fo