Hi,
Definitely I have a problem trying to implement functions using overlappings... What I want to do looks simple:
- I have grid cellPred
- I have a species called pred
- I have a polygon called zoneFav (imported shapefile) defined as a species
I want to create a number of pred both within the cells of cellPred and within the polygon zoneFav. I tried to do it with:
create pred number:nb_pred{
list<cellPred> mysel<-cellPred inside(zoneFav);
cellPred cellule_choisie <-one_of(mysel);
my_cellPred<-cellule_choisie;
location<-my_cellPred.location;
}
But when preparing the simulation I get the following error
![]()
Can anybody tell me what is going wrong ?
Best,