getBirdNames: getBirdNames

getBirdNamesR Documentation

getBirdNames

Description

Translates between Latin name, common name and AOU code based on data from the Species slot.

Usage

getBirdNames(object, names = NA, in.style = "AOU", out.style = "common")

Arguments

object

A NCRNbirds object or a list of such objects.

names

A character vector containing the names to be translated.

in.style

A length 1 character vector. Either "AOU", "Latin" or "common". Indicates the type of name found in the "names" agrument.

out.style

A length 1 character vector. Either "AOU", "Latin", "common". Indicates the type of names to be returned. Defaults to "common" # @param output Either "dataframe" (the default) or "list". Note that this must be in quotes. Determines the type of output from the function.

Details

This function converts a vector of names between the American Ornitholgoical Union Code (AOU Code), Latin name and scientific name. This is used by various other functions to provide the correct type of name in the output. The data to make these conversion is stored in the Species solot of a NCRNbirds object.

Currently the list method simply uses the data from the Species slot of the first object in the list.


NCRN/NCRNbirds documentation built on Aug. 28, 2023, 12:12 p.m.