check_names: Check spelling of common names for West Coast fish species

View source: R/check_names.R

check_namesR Documentation

Check spelling of common names for West Coast fish species

Description

This function checks the spelling of common names for West Coast fish species. It aims to help harmonize datasets based on common names.

Usage

check_names(names, return = 1)

Arguments

names

A character vector of species common names

return

1 returns a list formatted for recoding and 2 returns a data frame

Value

A list or data frame showing suggestions for misspelled common names

Examples

# Suggest spelling corrections for common names
check_names(names=c("Pacific codd", "CA spiny lobster", "Dungeness crab", "Crab, Dungness"), return=2)

cfree14/wcfish documentation built on July 20, 2024, 7:50 p.m.