This function takes a list of birds species names, searches for their data in the avesperu pacakage dataset, and returns a data frame containing the relevant information for each species.
Arguments
- splist
A character vector containing the names of the species to search for.
- max_distance
The maximum allowed distance for fuzzy matching of species names. Defaults to 0.1.
Details
The function allows fuzzy matching for species names with a maximum distance threshold to handle potential typos or variations in species names.
Examples
splist <- c("Falco sparverius", "Tinamus osgodi", "Crypturellus sooui",
"Thraupisa palamarum", "Thamnophilus praecox")
search_avesperu(splist)
#> name_submitted accepted_name english_name spanish_name
#> 1 Falco sparverius Falco sparverius American Kestrel Cernícalo Americano
#> 2 Tinamus osgodi Tinamus osgoodi Black Tinamou Perdiz Negra
#> 3 Crypturellus sooui Crypturellus soui Little Tinamou Perdiz Chica
#> 4 Thraupisa palamarum Thraupis palmarum Palm Tanager Tangara de Palmeras
#> order family status dist
#> 1 Falconiformes Falconidae nill 0
#> 2 Tinamiformes Tinamidae nill 1
#> 3 Tinamiformes Tinamidae nill 1
#> 4 Passeriformes Thraupidae nill 2