## load stuff
install.packages("devtools")
library(devtools)
install_github("rbison", "ropensci")
library(rbison)
## search for knapweed
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
library(data.table) | |
## skip the following by just clicking the link to download | |
download.file("https://dl.dropboxusercontent.com/u/18092793/plants.csv", method = "auto", destfile = "species.csv") | |
species <- fread("species.csv") | |
species[`Berry/Nut/Seed Product` == "Yes"| | |
`Christmas Tree Product` == "Yes" | | |
`Pulpwood Product` == "Yes"] |
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
is.invasive() | |
##Description## | |
#This function check which species (both plants and animals) are considered "invaders" somewhere in the | |
# world. For that end, it checks GISD (http://www.issg.org/database/welcome/) and returns a value, either | |
#"Not invasive" or the brief description presented in GISD. Note that the webpage contains more | |
#information. Also note that the function won't tell you if it's exotic in your area, a lot of exotic | |
#species are not considered invaders (yet). As expected, the function is as good as the database is, which | |
#I find quite reliable and well maintained. The database is also able to recognize a lot (but not all) of |