wcvp_match_exact {rWCVP}R Documentation

Exact matching to WCVP.

Description

Exact matching of names to the WCVP, optionally using the author string to refine results.

Usage

wcvp_match_exact(names_df, wcvp_names, name_col, author_col = NULL, id_col)

Arguments

names_df

Data frame of names for matching.

wcvp_names

Data frame of taxonomic names from WCVP version 7 or later. If NULL (the default), names will be loaded from rWCVPdata::wcvp_names.

name_col

Character. The column in names_df that has the taxon name for matching.

author_col

the column in names_df that has the name authority, to aid matching. Set to NULL to match with no author string.

id_col

the column in names_df that has the observation id.

Value

Match results from WCVP bound to the original data from names_df.

See Also

Other name matching functions: wcvp_match_fuzzy(), wcvp_match_names()

Examples

 # these examples require 'rWCVPdata'
if(requireNamespace("rWCVPdata")){
wcvp_names <- rWCVPdata::wcvp_names

# including author string
wcvp_match_exact(redlist_example, wcvp_names, "scientificName",
  author_col = "authority",
  id_col = "assessmentId"
)

# without author string
wcvp_match_exact(redlist_example, wcvp_names, "scientificName", id_col = "assessmentId")
}



[Package rWCVP version 1.2.4 Index]