Learn R Programming

taxize (version 0.9.4)

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)

Arguments

rank

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

size

Number of names to get. Maximum depends on the rank.

Value

Vector of taxonomic names.

Examples

Run this code
# NOT RUN {
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