get_species: Get unique species in a given genus in dataframe.

Description Usage Arguments Details Value Examples

View source: R/get_species.R

Description

get_species returns all species name that correspond to genus name input in a FishNet2 dataframe.

Usage

1
get_species(df, genus)

Arguments

df

A dataframe in FishNet2 standard format (by using read.csv())

genus

Genus of species

Details

This is a function to get the species name of a given genus name. Names are found using the 'ScientificName' column in a FishNet2 dataframe. If "value is only one word, no species name is returned.

Value

Vector of unique species values or character(0) if empty

Examples

1
2
3
get_species(ictaluridae, "Ameirus")
get_species(ictaluridae, "Noturus")
get_species(louisiana, "Scaphirhynchus")

kdors/rfishnet2 documentation built on Jan. 14, 2020, 12:33 p.m.