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

NAs introduced by coercion ? #17

Closed
MattOates opened this issue May 30, 2013 · 2 comments
Closed

NAs introduced by coercion ? #17

MattOates opened this issue May 30, 2013 · 2 comments

Comments

@MattOates
Copy link

Hi thanks for this package it's really very useful! I just tried out the GitHub version over the one found in CRAN, and ran into an issue just with the demo usage. This in no way affects me, just thought you might want a heads up.

splist <- c('Accipiter erythronemius', 'Junco hyemalis', 'Aix sponsa', 'Buteo regalis')
out <- lapply(splist, function(x) occurrencelist(x, coordinatestatus = T, maxresults = 100))
Warning messages:
1: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
2: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
3: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
4: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
5: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
6: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
7: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
8: In FUN(1:7[[7L]], ...) : NAs introduced by coercion
gbifmap(out)
Error in UseMethod("gbifmap") :
no applicable method for 'gbifmap' applied to an object of class "list"

@sckott
Copy link
Contributor

sckott commented May 30, 2013

Thanks for your report.

Looking into it now...

@sckott
Copy link
Contributor

sckott commented May 30, 2013

The NAs introduced by coercion are just a warning, and don't indicate a problem as far as I know.

I had forgotten to update the readme. For > 1 species occurrence search, use occurrencelist_many function, and the output can go directly to the gbifmap function. See the new readme.

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