Skip to content
Prev 25971 / 29559 Next

quadracount on multitype points

On 13/09/17 11:08, Guy Bayegnak wrote:
I don't understand the counts in the foregoing.  Have some digits been 
left off in places?  I.e. should this be:
 >
 >            x
 >   y         [0,0.801)            [0.801,1.6]
 >    [0.5,1]   Off = 36               Off = 36
 >              On  = 35               On  = 39
 >
 >     [0,0.5)  Off = 34               Off = 36
 >              On  = 42               On  = 36       ???
 >
Yeucch!  Manually?  Saints preserve us!

Do you really mean "quadrant" or do you simply mean *quadrat*???

Sticking with quad*rant* (it doesn't really matter), how about something 
like:

rants <- tiles(quadrats(Window(amacrine),nx=2))
lapply(rants,function(w,pat){table(marks(pat[w]))},pat=amacrine)

which gives:
cheers,

Rolf

P. S.  But you are probably well-advised to forget all this quadrat 
counting stuff and use relrisk() as suggested by Ege Rubak.

R.