Skip to content

Instantly share code, notes, and snippets.

@PhillRob
Last active October 21, 2015 10:28
Show Gist options
  • Save PhillRob/f8d8a7b2b556ea54dc38 to your computer and use it in GitHub Desktop.
Save PhillRob/f8d8a7b2b556ea54dc38 to your computer and use it in GitHub Desktop.
checks if species is included in issg.org
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