Learn R Programming

taxize (version 0.9.100.1)

names_list: Get a random vector of species names.

Description

Family and order names come from the APG plant names list. Genus and species names come from Theplantlist.org.

Usage

names_list(rank = "genus", size = 10)

Value

character vector of taxonomic names

Arguments

rank

(character) Taxonomic rank, one of species, genus (default), family, order

size

(integer/numeric) Number of names to get. Maximum depends on the rank

Author

Scott Chamberlain

Examples

Run this code
names_list()
names_list('species')
names_list('genus')
names_list('family')
names_list('order')
names_list('order', 2)
names_list('order', 15)

# You can get a lot of genus or species names if you want
nrow(theplantlist)
names_list('genus', 500)

Run the code above in your browser using DataLab