fill_dwc: Filling taxonomic information based on Local Name for Darwin...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/fill_dwc.R

Description

Searching and parsing Scientific Names in the Local Name field, and automatically filling the following columns for each species if not supplied: FAMILY,GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK

Usage

1
fill_dwc(dat, namedb = c("spfrps", "spfoc", "colcn2019"))

Arguments

dat

Data frame, usually a dataframe representing Darwin Core Herbarium Templates

namedb

Character string, represent the database to use to fill the scientific names, 'spfrps' for Flora Rpublicae Popularis Sinicae, 'spfoc' for Flora of China, 'colcn2019' for the accepted names used in the Catalogue of Life China 2019 Annual Checklist.

Details

This function will:

(1) Look for the Scientific Name for each species if the Chinese Name is provided as LOCAL_NAME, and the scientific name will go to the SCIENTIFIC_NAME column.

(2) If the full scientific name is provided as LOCAL_NAME, it will goes directly to the SCIENTIFIC_NAME column.

(3) Parse the scientific name, and fill the following the columns: GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET and AUTHOR_OF_INFRASPECIFIC_RANK.

(4) Search the FAMILY for each species based on GENUS, that adopted by The Plant List Website.

(5) If any field: FAMILY, GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK has not been provided, the function will try to fill the corresponding fields.

(6) If there are multiple matches, the function can will issue an warning. Pay attention to the multiple matches.

(7) Only the orginal columns will be kept in the final result.

Value

The dataframe containing FAMILY, GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK for a given species.

Author(s)

Jinlong Zhang jinlongzhang01@gmail.com

See Also

herbarium_label

Examples

1
2
3
4
5
library(openxlsx)
dat <- read.xlsx(system.file("extdata", "DARWIN_CORE_HERBARIUM_RECORDS.xlsx", 
                 package = "herblabel"))
dwc_filled <- fill_dwc(dat)
herbarium_label(dat = dwc_filled, outfile = "herblabel_fill_sp_dwc_example.rtf")

helixcn/herblabel documentation built on March 31, 2021, 5:45 a.m.