Re: [R] problem with mahal function Package dismo

2013-08-07 Thread Jon Olav Skoien
Hi Ernesto, I think the issue is that the mahal function treats the arguments differently depending on the class. If you pass the arguments x and p as raster and data.frame/matrix, it will use the values of x at the locations defined in p as training data. If you pass a data.frame, it will assu

Re: [R] problem with mahal function Package dismo

2013-08-06 Thread David Carlson
.org Subject: Re: [R] problem with mahal function Package dismo 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 functi

Re: [R] problem with mahal function Package dismo

2013-08-06 Thread Ernesto Villarino
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