Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user-defined buffer for pseudoabsence sampling #88

Open
SusanaPallares opened this issue Jul 30, 2021 · 2 comments
Open

user-defined buffer for pseudoabsence sampling #88

SusanaPallares opened this issue Jul 30, 2021 · 2 comments

Comments

@SusanaPallares
Copy link

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

@AndreaSanchezTapia
Copy link
Member

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.

@SusanaPallares
Copy link
Author

Hi Andrea,

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

Susana

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants