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

cc_outl throws error when all splist[test >= min_occs] #28

Closed
pepbioalerts opened this issue Jul 8, 2019 · 1 comment
Closed

cc_outl throws error when all splist[test >= min_occs] #28

pepbioalerts opened this issue Jul 8, 2019 · 1 comment

Comments

@pepbioalerts
Copy link

when all species in the dataset do not pass the test of minimum occurrences
splist <- splist[test >= min_occs]
it returns a list without elements. The function is able to warn you and continue, however, if the method is quantile and there's a sampling threshold set (sampling_thresh > 0 ) then it troughs an error.

I have resolved the issue by adding
if (sampling_thresh > 0 & length(flags)>0) {}

Just a suggestion
Cheers,
Pep

@azizka
Copy link
Collaborator

azizka commented May 11, 2020

I could not reproduce it, but changes the structure of the if considition, so that this will not occur anymore as of version 2.0-14. Thanks

@azizka azizka closed this as completed May 11, 2020
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