Hi all,
I want to apply mahal function using data.frame instead of raster data
but I am having problems (see error message below). I want to use
data.frame since we have seasonal data (the species distribute
differently as a function of months).

> head (predictor)

       OCPT     x1XM     z        Pc     pHxM      MLD
38 21.23519 36.24476 -3164  8.836913 8.082310 68.09159
39 21.13811 36.25013 -2487  8.451318 8.077561 57.78384
40 21.03920 36.25259 -2025  8.132195 8.073292 62.59614
41 20.94312 36.25257 -3409  7.851401 8.069450 55.83329
79 21.22135 36.10911   -40 18.707443 8.108031 42.55479
80 21.14884 36.13638 -2800 21.133693 8.063561 64.28003

> head (Cfin)

   Lat Long
38  35  -38
39  35  -37
40  35  -36
41  35  -35
79  36  -75
80  36  -74

> mm<-mahal (predictor,Cfin)
Error en (function (classes, fdef, mtable)  :
  unable to find an inherited method for function 'mahal' for signature
'"data.frame", "data.frame"'

Can you help me ??
Thanks,
Regards,
Ernesto

	[[alternative HTML version deleted]]

