Skip to content

Instantly share code, notes, and snippets.

View jonesor's full-sized avatar

Owen Jones jonesor

View GitHub Profile
@sckott
sckott / getfishnames.r
Last active October 13, 2015 20:38
How to get fish names downstream from family names using taxize
# How to get fish names downstream from family names using taxize
## load libraries
install.packages(c("plyr","taxize"))
library(taxize); library(plyr)
## get taxonomic serial numbers from ITIS for these two fish families
tsns <- get_colid(c("Anostomidae","Curimatidae"))
## Use the function `downstream` to get all species (specified by the `downto` argument) in these two families
out <- downstream(tsns, downto="Species")