modleR icon indicating copy to clipboard operation
modleR copied to clipboard

user-defined buffer for pseudoabsence sampling

Open SusanaPallares opened this issue 4 years ago • 2 comments

Hi, I am modeling multiple species (around 300) and I would like to apply the user-defined buffer for pseudoabsence sampling. But in my case, the accesible area would be different for each species so idelly I would like to consider different sampling areas for each one. In that case, it is possible to specify a folder that contains the different shapefiles in the buffer_shape argument instead of a single file?

Thanks! Susana

SusanaPallares avatar Jul 30 '21 10:07 SusanaPallares

Hi Susana, absolutely, you can have multiple user-defined shapes. Depending on how you prefer your multiple-species workflow (https://github.com/Model-R/modleR#workflows-with-multiple-species) you can do this in multiple ways. If you look at the first example (a for loop) you can have a list of the occurrences and also a list of shapes (say M_area) For each iteration you would use M_area[[i]] The same goes for the other ways to do it, you can use pmap() in purrr and have multiple lists as arguments.

If you have some code and need some help regarding this, feel free to write.

AndreaSanchezTapia avatar Aug 05 '21 03:08 AndreaSanchezTapia

Hi Andrea,

That´s great! I will try it as soon as I have my data ready. Many thanks your response.

Susana

SusanaPallares avatar Aug 05 '21 10:08 SusanaPallares