This file contains 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
# 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") |