Last active
October 21, 2015 10:28
-
-
Save PhillRob/f8d8a7b2b556ea54dc38 to your computer and use it in GitHub Desktop.
checks if species is included in issg.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isgg<- function(x) { | |
species<-gsub(" ","+",x) | |
sp <- getURL(paste0("http://www.issg.org/database/species/search.asp?sts=sss&st=sss&fr=1&x=16&y=13&sn=", species,"&rn=&hci=-1&ei=-1&lang=EN")) | |
if (length(grep("No invasive species currently recorded",sp))) { | |
return("Not_found") | |
} else {return("Found")} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment